File tree 2 files changed +7
-38
lines changed
2 files changed +7
-38
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -29,14 +29,16 @@ function! s:InvokeArduinoCli(deploy)
29
29
execute " w"
30
30
if a: deploy
31
31
echomsg " Compiling and deploying..." l: f_name
32
+ let l: result = system (" ino build && ino upload" )
32
33
else
33
34
echomsg " Compiling..." l: f_name
35
+ let l: result = system (" ino build" )
34
36
endif
35
37
36
- let l: command = s: helper_dir . " /vim-arduino " . l: flag
37
- let l: result = system (l: command )
38
38
echo l: result
39
39
call s: PrintStatus (v: shell_error )
40
+
41
+ return ! v: shell_error
40
42
endfunction
41
43
42
44
" Public: Compile the current pde file.
@@ -62,8 +64,9 @@ endfunction
62
64
"
63
65
" Returns nothing.
64
66
function ! ArduinoSerialMonitor ()
65
- call ArduinoDeploy ()
66
- echo system (s: helper_dir ." /vim-arduino-serial" )
67
+ if ArduinoDeploy ()
68
+ echo system (s: helper_dir ." /vim-arduino-serial" )
69
+ endif
67
70
endfunction
68
71
69
72
if ! exists (' g:vim_arduino_map_keys' )
You can’t perform that action at this time.
0 commit comments