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

@ -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)

Loading…
Cancel
Save