Merge pull request #295 from PavelSindler/power_panic

Power panic fix
This commit is contained in:
PavelSindler 2017-12-06 18:30:40 +01:00 committed by GitHub
commit 327273d12b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -9,7 +9,7 @@
// Firmware version
#define FW_version "3.1.1-RC1"
#define FW_build 124
#define FW_build 125
//#define FW_build --BUILD-NUMBER--
#define FW_version_build FW_version " b" STR(FW_build)

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++) {