Skip the extra 0 "work in progress" byte sent by the KL03 ROM bootloader.

This commit is contained in:
László Monda
2017-04-20 15:49:32 +02:00
parent 11c6291770
commit e0fb590d8d

View File

@@ -513,6 +513,9 @@ static status_t handle_command_internal(uint8_t *packet, uint32_t packetLength)
}
else
{
uint8_t dst[1];
peripheral_read(dst, 1); // TODO: Make this more general, so that the extra 0 byte is not expected.
rxSize = ((framing_data_packet_t *)rxBuf)->length;
if (peripheral_read(rxBuf + sizeof(framing_data_packet_t), rxSize) != kStatus_Success)
{