Added more debug information about which bank/voice is loaded.

pull/4/head
Holger Wirtz 6 years ago
parent b9d7012d03
commit e9c745806c
  1. 4
      MicroDexed.ino
  2. 15
      dexed_sysex.cpp

@ -91,7 +91,8 @@ void setup()
{
//while (!Serial) ; // wait for Arduino Serial Monitor
Serial.begin(SERIAL_SPEED);
delay(200);
#ifndef MASTER_KEY_MIDI
// lcd.init();
// lcd.blink_off();
@ -107,6 +108,7 @@ void setup()
Serial.println(F("MicroDexed based on https://github.com/asb2m10/dexed"));
Serial.println(F("(c)2018 H. Wirtz <wirtz@parasitstudio.de>"));
Serial.println(F("https://github.com/dcoredump/MicroDexed"));
Serial.println(F("<setup start>"));
// start up USB host

@ -73,11 +73,13 @@ bool load_sysex(uint8_t bank, uint8_t voice_number)
#ifdef DEBUG
char n[11];
strncpy(n, (char*)&data[118], 10);
Serial.print(F("<"));
Serial.print("Loading sysex ");
Serial.print(bankdir);
Serial.print("/");
Serial.print(entry.name());
Serial.print(F("|"));
Serial.print(F(" ["));
Serial.print(n);
Serial.println(F(">"));
Serial.println(F("]"));
#endif
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;
#ifdef DEBUG
Serial.print(F(" Bulk checksum: 0x"));
Serial.println(bulk_checksum, HEX);
Serial.print(F("Bulk checksum: 0x"));
Serial.print(bulk_checksum_calc, HEX);
Serial.print(F(" [0x"));
Serial.print(bulk_checksum, HEX);
Serial.println(F("]"));
#endif
if (bulk_checksum_calc != bulk_checksum)

Loading…
Cancel
Save