Skip to content

Commit b9889d4

Browse files
Fix bug where setting svdAddrGapThreshold to 0 in launch.json caused … (#38)
* Fix bug where setting svdAddrGapThreshold to 0 in launch.json caused the default gap of 16 to be used instead. Check "thresh == undefined" instead of "!thresh". * Use strict equality in thresh comparison
1 parent ece8189 commit b9889d4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/views/peripheral.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ export class PeripheralTreeProvider implements vscode.TreeDataProvider<Periphera
388388
this.sessionPeripheralsMap.set(session.id, regs);
389389
let thresh = session.configuration[manifest.CONFIG_ADDRGAP];
390390

391-
if (!thresh) {
391+
if (thresh === undefined) {
392392
thresh = vscode.workspace.getConfiguration(manifest.PACKAGE_NAME).get<number>(manifest.CONFIG_ADDRGAP) || manifest.DEFAULT_ADDRGAP;
393393
}
394394

0 commit comments

Comments
 (0)