fix: added saving filename to eeprom which was removed by accident

This commit is contained in:
PavelSindler 2017-12-06 18:13:54 +01:00
parent cdb193495d
commit 2cbd1f7894
1 changed files with 4 additions and 0 deletions

View File

@ -6195,6 +6195,10 @@ static void menu_action_sdfile(const char* filename, char* longFilename)
}
if (result) {
for (int i = 0; i < 8; i++) {
eeprom_write_byte((uint8_t*)EEPROM_FILENAME + i, filename[i]);
}
uint8_t depth = (uint8_t)card.getWorkDirDepth();
for (uint8_t i = 0; i < depth; i++) {