Skip to content

Commit cf84183

Browse files
authored
fix(stlink): pass value of targetProcessor to -m flag (#1178)
1 parent ed5a1eb commit cf84183

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stlink.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ export class STLinkServerController extends EventEmitter implements GDBServerCon
265265
}
266266
serverargs.push('--halt'); // Need this for reset to work as expected (perform a halt)
267267
if (this.targetProcessor > 0) {
268-
serverargs.push('-m', `this.targetProcessor`);
268+
serverargs.push('-m', `${this.targetProcessor}`);
269269
}
270270

271271
if (this.args.serverArgs) {

0 commit comments

Comments
 (0)