@@ -140,7 +140,7 @@ export class ArduinoApp {
140
140
}
141
141
}
142
142
143
- const appPath = this . isArduinoCli ? ArduinoWorkspace . rootPath : path . join ( ArduinoWorkspace . rootPath , dc . sketch ) ;
143
+ const appPath = this . isArduinoCli ( ) ? ArduinoWorkspace . rootPath : path . join ( ArduinoWorkspace . rootPath , dc . sketch ) ;
144
144
const args = this . isArduinoCli ( ) ? [ "upload" , "-b" , boardDescriptor ] : [ "--upload" , "--board" , boardDescriptor ] ;
145
145
if ( dc . port ) {
146
146
args . push ( "--port" , dc . port ) ;
@@ -213,7 +213,7 @@ export class ArduinoApp {
213
213
UsbDetector . getInstance ( ) . pauseListening ( ) ;
214
214
await vscode . workspace . saveAll ( false ) ;
215
215
216
- const appPath = this . isArduinoCli ? ArduinoWorkspace . rootPath : path . join ( ArduinoWorkspace . rootPath , dc . sketch ) ;
216
+ const appPath = this . isArduinoCli ( ) ? ArduinoWorkspace . rootPath : path . join ( ArduinoWorkspace . rootPath , dc . sketch ) ;
217
217
const args = [ "--upload" , "--board" , boardDescriptor , "--port" , dc . port , "--useprogrammer" ,
218
218
"--pref" , "programmer=" + selectProgrammer , appPath ] ;
219
219
if ( VscodeSettings . getInstance ( ) . logLevel === "verbose" ) {
@@ -276,7 +276,7 @@ export class ArduinoApp {
276
276
}
277
277
}
278
278
279
- const appPath = this . isArduinoCli ? ArduinoWorkspace . rootPath : path . join ( ArduinoWorkspace . rootPath , dc . sketch ) ;
279
+ const appPath = this . isArduinoCli ( ) ? ArduinoWorkspace . rootPath : path . join ( ArduinoWorkspace . rootPath , dc . sketch ) ;
280
280
const args = this . isArduinoCli ( ) ? [ "compile" , "-b" , boardDescriptor , appPath ] : [ "--verify" , "--board" , boardDescriptor , appPath ] ;
281
281
if ( VscodeSettings . getInstance ( ) . logLevel === "verbose" ) {
282
282
args . push ( "--verbose" ) ;
0 commit comments