We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b554f51 commit 87cef59Copy full SHA for 87cef59
src/flash/nor/esp_flash.c
@@ -1122,14 +1122,14 @@ int esp_algo_flash_breakpoint_add(struct target *target,
1122
sw_bp->oocd_bp = NULL;
1123
return ret;
1124
}
1125
- if (run.ret_code == 0) {
+ if (run.ret_code <= 0) {
1126
LOG_ERROR("%s: Failed to set bp (%" PRId32 ")!", target_name(target), run.ret_code);
1127
destroy_mem_param(&mp);
1128
1129
return ERROR_FAIL;
1130
1131
sw_bp->insn_sz = (uint8_t)run.ret_code;
1132
- /* sanity check for instructionb buffer overflow */
+ /* sanity check for instruction buffer overflow */
1133
assert(sw_bp->insn_sz <= sizeof(sw_bp->insn));
1134
memcpy(sw_bp->insn, mp.value, sw_bp->insn_sz);
1135
0 commit comments