|
|
@ -73,11 +73,13 @@ bool load_sysex(uint8_t bank, uint8_t voice_number) |
|
|
|
#ifdef DEBUG |
|
|
|
#ifdef DEBUG |
|
|
|
char n[11]; |
|
|
|
char n[11]; |
|
|
|
strncpy(n, (char*)&data[118], 10); |
|
|
|
strncpy(n, (char*)&data[118], 10); |
|
|
|
Serial.print(F("<")); |
|
|
|
Serial.print("Loading sysex "); |
|
|
|
|
|
|
|
Serial.print(bankdir); |
|
|
|
|
|
|
|
Serial.print("/"); |
|
|
|
Serial.print(entry.name()); |
|
|
|
Serial.print(entry.name()); |
|
|
|
Serial.print(F("|")); |
|
|
|
Serial.print(F(" [")); |
|
|
|
Serial.print(n); |
|
|
|
Serial.print(n); |
|
|
|
Serial.println(F(">")); |
|
|
|
Serial.println(F("]")); |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
return (dexed->loadSysexVoice(data)); |
|
|
|
return (dexed->loadSysexVoice(data)); |
|
|
|
} |
|
|
|
} |
|
|
@ -166,8 +168,11 @@ bool get_sysex_voice(char* dir, File sysex, uint8_t voice_number, uint8_t* data) |
|
|
|
bulk_checksum_calc &= 0x7f; |
|
|
|
bulk_checksum_calc &= 0x7f; |
|
|
|
|
|
|
|
|
|
|
|
#ifdef DEBUG |
|
|
|
#ifdef DEBUG |
|
|
|
Serial.print(F(" Bulk checksum: 0x")); |
|
|
|
Serial.print(F("Bulk checksum: 0x")); |
|
|
|
Serial.println(bulk_checksum, HEX); |
|
|
|
Serial.print(bulk_checksum_calc, HEX); |
|
|
|
|
|
|
|
Serial.print(F(" [0x")); |
|
|
|
|
|
|
|
Serial.print(bulk_checksum, HEX); |
|
|
|
|
|
|
|
Serial.println(F("]")); |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
if (bulk_checksum_calc != bulk_checksum) |
|
|
|
if (bulk_checksum_calc != bulk_checksum) |
|
|
|