keep support for existing CAN reboot command

This commit is contained in:
Matthew Kennedy 2023-11-22 20:52:09 -08:00
parent ea46db500f
commit 5da22cf89f
1 changed files with 2 additions and 2 deletions

View File

@ -94,10 +94,10 @@ void CanRxThread(void*)
} }
} }
// If it's a bootloader entry request, reboot to the bootloader! // If it's a bootloader entry request, reboot to the bootloader!
else if (frame.DLC == 1 && frame.EID == WB_BL_ENTER) else if ((frame.DLC == 0 || frame.DLC == 1) && frame.EID == WB_BL_ENTER)
{ {
// If 0xFF (force update all) or our ID, reset to bootloader, otherwise ignore // If 0xFF (force update all) or our ID, reset to bootloader, otherwise ignore
if (frame.data8[0] == 0xFF || frame.data8[0] == GetConfiguration()->CanIndexOffset) if (frame.DLC == 0 || frame.data8[0] == 0xFF || frame.data8[0] == GetConfiguration()->CanIndexOffset)
{ {
SendAck(); SendAck();