no printf() in teensy code
This commit is contained in:
parent
1cdface168
commit
8e6effaa41
1 changed files with 0 additions and 8 deletions
|
@ -268,11 +268,6 @@ void sendSysexSettings() {
|
||||||
|
|
||||||
uint32_t checksum = crc32(sysex_data, checksum_pos);
|
uint32_t checksum = crc32(sysex_data, checksum_pos);
|
||||||
|
|
||||||
/*
|
|
||||||
printf("CRC len: %d\n", checksum_pos);
|
|
||||||
printf("CRC32: %X | %u\n", checksum, checksum);
|
|
||||||
*/
|
|
||||||
|
|
||||||
*(uint32_t*)(sysex_data+checksum_pos) = midi32to28(checksum);
|
*(uint32_t*)(sysex_data+checksum_pos) = midi32to28(checksum);
|
||||||
|
|
||||||
usbMIDI.sendSysEx(sysex_size, sysex_data);
|
usbMIDI.sendSysEx(sysex_size, sysex_data);
|
||||||
|
@ -305,7 +300,6 @@ bool receiveSysexSettings(const uint8_t* data, const uint16_t length) {
|
||||||
//Make sure length of receive buffer is enough to read all we need to. We can accept extra junk at the end though.
|
//Make sure length of receive buffer is enough to read all we need to. We can accept extra junk at the end though.
|
||||||
if(length<expected_size) {
|
if(length<expected_size) {
|
||||||
configShowMessage("Invalid config format");
|
configShowMessage("Invalid config format");
|
||||||
printf("Invalid config format %d %d\n", length, expected_size);
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -318,7 +312,6 @@ bool receiveSysexSettings(const uint8_t* data, const uint16_t length) {
|
||||||
memcpy(&crc_rcv, data+checksum_pos, 4);
|
memcpy(&crc_rcv, data+checksum_pos, 4);
|
||||||
if(crc != crc_rcv) {
|
if(crc != crc_rcv) {
|
||||||
configShowMessage("Invalid checksum");
|
configShowMessage("Invalid checksum");
|
||||||
printf("[crc] expected: %x got: %x\n", crc, crc_rcv);
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -326,7 +319,6 @@ bool receiveSysexSettings(const uint8_t* data, const uint16_t length) {
|
||||||
uint16_t payload_size = midi14to16(data+size_pos);
|
uint16_t payload_size = midi14to16(data+size_pos);
|
||||||
if(payload_size != EEPROM_SIZE) {
|
if(payload_size != EEPROM_SIZE) {
|
||||||
configShowMessage("Invalid config size");
|
configShowMessage("Invalid config size");
|
||||||
printf("[size] expected: %d got: %d (at %d)\n", EEPROM_SIZE, payload_size, size_pos);
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue