Firmware: correct a superfluous warning message

Change-Id: I877fc5add297358445a5250b245660ca741c7930
This commit is contained in:
David Banks 2019-10-31 12:06:53 +00:00
parent 3b90dc82fc
commit da3651abf2

View File

@ -736,15 +736,19 @@ int lookupBreakpointN(int n) {
}
if (n < numbkpts) {
return n;
} else {
return -1;
}
log0("Breakpoint/watch not set at %04X\n", n);
return -1;
}
int lookupBreakpoint(char *params) {
int n = -1;
sscanf(params, "%x", &n);
return lookupBreakpointN(n);
n = lookupBreakpointN(n);
if (n < 0) {
log0("Breakpoint/watch not set at %04X\n", n);
}
return n;
}
// Enable/Disable single stepping