File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ function! arduino#InitializeConfig() abort
3636 if exists (' g:_cache_arduino_programmer' )
3737 let g: arduino_programmer = g: _cache_arduino_programmer
3838 else
39- let g: arduino_programmer = ' arduino:usbtinyisp '
39+ let g: arduino_programmer = ' '
4040 endif
4141 endif
4242 if ! exists (' g:arduino_args' )
@@ -61,9 +61,6 @@ function! arduino#InitializeConfig() abort
6161 if ! exists (' g:arduino_use_slime' )
6262 let g: arduino_use_slime = 0
6363 endif
64- if ! exists (' g:arduino_upload_using_programmer' )
65- let g: arduino_upload_using_programmer = 0
66- endif
6764
6865 if ! exists (' g:arduino_run_headless' )
6966 let g: arduino_run_headless = executable (' Xvfb' ) == 1
@@ -532,10 +529,10 @@ function! arduino#Upload() abort
532529 if g: arduino_use_cli
533530 let cmd = arduino#GetCLICompileCommand (' -u' )
534531 else
535- if g: arduino_upload_using_programmer
536- let cmd_options = " --upload --useprogrammer"
537- else
532+ if empty (g: arduino_programmer )
538533 let cmd_options = " --upload"
534+ else
535+ let cmd_options = " --upload --useprogrammer"
539536 endif
540537 let cmd = arduino#GetArduinoCommand (cmd_options)
541538 endif
You can’t perform that action at this time.
0 commit comments