mirror of
https://github.com/TomNisbet/TommyPROM.git
synced 2024-11-22 10:31:39 +00:00
Add debug for XModem transfer failure
This commit is contained in:
parent
910d07fb58
commit
3c4de71cd8
@ -57,6 +57,7 @@ uint32_t XModem::ReceiveFile(uint32_t address)
|
|||||||
// Fail the transfer on anything else
|
// Fail the transfer on anything else
|
||||||
cmdStatus.error("Unexpected character received waiting for next packet.");
|
cmdStatus.error("Unexpected character received waiting for next packet.");
|
||||||
cmdStatus.setValueDec(0, "char", c);
|
cmdStatus.setValueDec(0, "char", c);
|
||||||
|
cmdStatus.setValueDec(1, "seq", seq);
|
||||||
return 0;
|
return 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -103,7 +104,7 @@ bool XModem::SendFile(uint32_t address, uint32_t fileSize)
|
|||||||
bytesSent += PKTLEN;
|
bytesSent += PKTLEN;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Signal end of transfer and process the ACK
|
// Signal end of transfer and process the ACK
|
||||||
Serial.write(XMDM_EOT);
|
Serial.write(XMDM_EOT);
|
||||||
rxChar = GetChar(5000);
|
rxChar = GetChar(5000);
|
||||||
if (rxChar != XMDM_ACK)
|
if (rxChar != XMDM_ACK)
|
||||||
|
Loading…
Reference in New Issue
Block a user