|
|
@ -63,7 +63,7 @@ bool get_bank_name(uint8_t b) |
|
|
|
else |
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (!entry.isDirectory()) |
|
|
|
if (!entry.isDirectory()) |
|
|
|
strncpy(bank_name, entry.name(), strlen(bank_name) - 1); |
|
|
|
strcpy(bank_name, entry.name()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -80,10 +80,10 @@ bool load_sysex(uint8_t b, uint8_t v) |
|
|
|
|
|
|
|
|
|
|
|
if (sd_card_available) |
|
|
|
if (sd_card_available) |
|
|
|
{ |
|
|
|
{ |
|
|
|
char bankdir[3]; |
|
|
|
char bankdir[4]; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
memset(bankdir, 0, sizeof(bankdir)); |
|
|
|
bankdir[0] = '/'; |
|
|
|
bankdir[0] = '/'; |
|
|
|
bankdir[2] = '\0'; |
|
|
|
|
|
|
|
itoa(b, &bankdir[1], 10); |
|
|
|
itoa(b, &bankdir[1], 10); |
|
|
|
|
|
|
|
|
|
|
|
root = SD.open(bankdir); |
|
|
|
root = SD.open(bankdir); |
|
|
@ -122,7 +122,7 @@ bool load_sysex(uint8_t b, uint8_t v) |
|
|
|
Serial.println(F("]")); |
|
|
|
Serial.println(F("]")); |
|
|
|
|
|
|
|
|
|
|
|
#endif |
|
|
|
#endif |
|
|
|
strncpy(bank_name, entry.name(), strlen(bank_name) - 1); |
|
|
|
strcpy(bank_name, entry.name()); |
|
|
|
|
|
|
|
|
|
|
|
return (dexed->loadSysexVoice(data)); |
|
|
|
return (dexed->loadSysexVoice(data)); |
|
|
|
} |
|
|
|
} |
|
|
|