Add "magic" CRC value that skips verification (for testing purposes)
This commit is contained in:
parent
e264b01dfd
commit
fc36e5939b
2 changed files with 2 additions and 1 deletions
|
@ -310,7 +310,7 @@ bool receiveSysexSettings(const uint8_t* data, const uint16_t length) {
|
|||
uint32_t crc=midi32to28(crc32(data, checksum_pos));
|
||||
uint32_t crc_rcv;
|
||||
memcpy(&crc_rcv, data+checksum_pos, 4);
|
||||
if(crc != crc_rcv) {
|
||||
if(crc != crc_rcv && crc_rcv != NO_CHECKSUM) {
|
||||
configShowMessage("Invalid checksum");
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue