Add "magic" CRC value that skips verification (for testing purposes)

This commit is contained in:
John Stäck 2019-08-09 08:19:02 +02:00
parent e264b01dfd
commit fc36e5939b
2 changed files with 2 additions and 1 deletions

View file

@ -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;
}