Commit 4db8ab6f authored by Rick Kimball's avatar Rick Kimball Committed by Peter Stuge
Browse files

lmicdiusb: Handle GDB Ctrl-C 0x03 single byte packet

parent 5730bd83
......@@ -109,6 +109,15 @@ gdb_statemachine(GDBCTX *pGdbCtx, unsigned char *pBuf, unsigned int len,
pGdbCtx->iNakCount++;
}
pGdbCtx->pResp[pGdbCtx->iRd++] = *pBuf;
if (*pBuf == 0x03)
{
/* GDB Ctrl-C */
if (pFn)
{
pFn(pGdbCtx, 1);
pGdbCtx->iRd = 0;
}
}
pBuf++;
break;
case GDB_PAYLOAD:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment