Closed jlandau10 closed 4 years ago
switch to permanent memory chip might not solve the issue as it is still flash memory.
comment out this in logger.cpp so that we are not writing to file, config files seems to not disappear now.
// writeFile = SD.open("LOG.TXT", FILE_WRITE); // if (!writeFile) { // logError("LOG.TXT open failed"); // return -1; // }
// logAddSender(toFile);
move MQTT config to EEPROM so if there is a corrupted SD at least there is a way to remotely download CONFIG.TXT again.
if CONFIG.TXT doesn't exist or cannot open, try to download it from S3 automatically.
maybe copy from DEFAULT.CFG to CONFIG.TXT?
canbus gets stuck when log to file is enabled. Weird
sometimes the CONFIG.TXT file is on SD, but cannot read it. Need to reinsert again
a newer one, base on the same code, that uses beginTransaction https://github.com/arduino-libraries/SD. So if we switch to the newer SD, it might allow multiple slaves with different speed on the SPI.
seems to be fixed
Sometimes the config files disappear from the sd card. May be due to power cycle during write.
Figure out why it’s happening and how to prevent.
Switch to permanent memory chip?