diff --git a/src/remote.c b/src/remote.c index aa82801..3e0a70e 100644 --- a/src/remote.c +++ b/src/remote.c @@ -333,7 +333,7 @@ void remotePacketProcessHL(uint8_t i, char *packet) if (i < 4) { _respond(REMOTE_RESP_ERR,REMOTE_ERROR_WRONGLEN); } else { - remote_dp.dp_jd_index = remotehston(2, &packet[2]); + remote_dp.dp_jd_index = remotehston(2, packet); _respond(REMOTE_RESP_OK, 0); } break; @@ -411,7 +411,7 @@ void remotePacketProcessHL(uint8_t i, char *packet) remote_ap.dp->fault = 0; break; } - _respond_buf(REMOTE_RESP_OK, src, len); + _respond(REMOTE_RESP_OK, 0); break; default: _respond(REMOTE_RESP_ERR,REMOTE_ERROR_UNRECOGNISED); diff --git a/src/target/lpc11xx.c b/src/target/lpc11xx.c index 5cad1e7..2b6d28b 100644 --- a/src/target/lpc11xx.c +++ b/src/target/lpc11xx.c @@ -137,7 +137,7 @@ lpc11xx_probe(target *t) target_add_commands(t, lpc11xx_cmd_list, "LPC8N04"); return true; } - if ((t->t_designer != AP_DESIGNER_SPECULAR) && !idcode) { + if ((t->t_designer != AP_DESIGNER_SPECULAR) && idcode) { DEBUG_INFO("LPC11xx: Unknown IDCODE 0x%08" PRIx32 "\n", idcode); } idcode = target_mem_read32(t, LPC8XX_DEVICE_ID);