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
346
346
endfunction
347
347
348
348
function ! arduino#GetProgrammers () abort
349
- let programmers = []
349
+ let programmers = [{
350
+ \ ' label' : ' -None-' ,
351
+ \ ' value' : ' ' ,
352
+ \} ]
350
353
if g: arduino_use_cli
351
354
let data = s: get_json_output (' arduino-cli board details ' . g: arduino_board . ' --list-programmers --format json' )
352
355
if has_key (data, ' programmers' )
@@ -565,7 +568,7 @@ endfunction
565
568
566
569
function ! arduino#GetSerialCmd () abort
567
570
let port = arduino#GetPort ()
568
- if empty ( port)
571
+ if ! port
569
572
echoerr " Error! No serial port found"
570
573
return ' '
571
574
endif
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ local M = {}
9
9
local entry_maker = function (item )
10
10
return {
11
11
display = item .label or item .value ,
12
- ordinal = item .value ,
12
+ ordinal = item .label or item . value ,
13
13
value = item .value ,
14
14
}
15
15
end
You can’t perform that action at this time.
0 commit comments