File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -346,7 +346,10 @@ function! arduino#GetBoardOptions(board) abort
346346endfunction
347347
348348function ! arduino#GetProgrammers () abort
349- let programmers = []
349+ let programmers = [{
350+ \ ' label' : ' -None-' ,
351+ \ ' value' : ' ' ,
352+ \} ]
350353 if g: arduino_use_cli
351354 let data = s: get_json_output (' arduino-cli board details ' . g: arduino_board . ' --list-programmers --format json' )
352355 if has_key (data, ' programmers' )
@@ -565,7 +568,7 @@ endfunction
565568
566569function ! arduino#GetSerialCmd () abort
567570 let port = arduino#GetPort ()
568- if empty ( port)
571+ if ! port
569572 echoerr " Error! No serial port found"
570573 return ' '
571574 endif
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ local M = {}
99local entry_maker = function (item )
1010 return {
1111 display = item .label or item .value ,
12- ordinal = item .value ,
12+ ordinal = item .label or item . value ,
1313 value = item .value ,
1414 }
1515end
You can’t perform that action at this time.
0 commit comments