File tree Expand file tree Collapse file tree 4 files changed +13
-2
lines changed Expand file tree Collapse file tree 4 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -459,6 +459,10 @@ function! arduino#GetSerialCmd() abort
459
459
return l: cmd
460
460
endfunction
461
461
462
+ function ! arduino#SetBaud (baud) abort
463
+ let g: arduino_serial_baud = a: baud
464
+ endfunction
465
+
462
466
function ! arduino#SetAutoBaud () abort
463
467
let n = 1
464
468
while n < line (" $" )
Original file line number Diff line number Diff line change @@ -181,5 +181,10 @@ COMMANDS *arduino-commands
181
181
Display information about the internal state of vim-arduino, including the
182
182
board, port, and the command that will be run in the terminal to verify your
183
183
sketch.
184
+
185
+ *:ArduinoSetBaud*
186
+ :ArduinoSetBaud [baud]
187
+ Set the baud rate used for serial connections. See | g:arduino_serial_baud |
188
+
184
189
===============================================================================
185
190
vim:ft=help:et:ts=2:sw=2:sts=2:norl
Original file line number Diff line number Diff line change 18
18
:ArduinoChooseProgrammer arduino.txt /*:ArduinoChooseProgrammer*
19
19
:ArduinoInfo arduino.txt /*:ArduinoInfo*
20
20
:ArduinoSerial arduino.txt /*:ArduinoSerial*
21
+ :ArduinoSetBaud arduino.txt /*:ArduinoSetBaud*
21
22
:ArduinoUpload arduino.txt /*:ArduinoUpload*
22
23
:ArduinoUploadAndSerial arduino.txt /*:ArduinoUploadAndSerial*
23
24
:ArduinoVerify arduino.txt /*:ArduinoVerify*
Original file line number Diff line number Diff line change 1
- if exists (' b:did_ftplugin ' )
1
+ if exists (' b:did_arduino_ftplugin ' )
2
2
finish
3
3
endif
4
- let b: did_ftplugin = 1
4
+ let b: did_arduino_ftplugin = 1
5
5
if ! exists (' g:arduino_did_initialize' )
6
6
call arduino#LoadCache ()
7
7
call arduino#InitializeConfig ()
@@ -26,3 +26,4 @@ command! -buffer -bar ArduinoUploadAndSerial call arduino#UploadAndSerial()
26
26
command ! - buffer - bar ArduinoGetInfo call arduino#GetInfo ()
27
27
command ! - buffer - bar ArduinoInfo call arduino#GetInfo ()
28
28
command ! - buffer - bar -nargs =? ArduinoChoosePort call arduino#ChoosePort (<f-args> )
29
+ command ! - buffer - bar -nargs =1 ArduinoSetBaud call arduino#SetBaud (<f-args> )
You can’t perform that action at this time.
0 commit comments