Image for T-Beam is in good working shape, restructuring the Perl data importer to deal with the 44 columns using hashes rather than positions
This commit is contained in:
parent
e28ebe5b17
commit
d3043533ce
9 changed files with 174 additions and 41 deletions
|
|
@ -118,6 +118,25 @@ bool StartupSdManager::consumeRemovedEvent() {
|
|||
return out;
|
||||
}
|
||||
|
||||
bool StartupSdManager::forceRemount() {
|
||||
logf("Watcher: manual rescan requested");
|
||||
presentVotes_ = 0;
|
||||
absentVotes_ = 0;
|
||||
lastPollMs_ = 0;
|
||||
lastFullScanMs_ = millis();
|
||||
|
||||
cycleSdRail(cfg_.recoveryRailOffMs, cfg_.recoveryRailOnSettleMs);
|
||||
delay(cfg_.startupWarmupMs);
|
||||
|
||||
if (mountCardFullScan()) {
|
||||
setStateMounted();
|
||||
return true;
|
||||
}
|
||||
|
||||
setStateAbsent();
|
||||
return false;
|
||||
}
|
||||
|
||||
void StartupSdManager::logf(const char* fmt, ...) {
|
||||
char msg[196];
|
||||
va_list args;
|
||||
|
|
|
|||
|
|
@ -46,6 +46,7 @@ class StartupSdManager {
|
|||
|
||||
bool consumeMountedEvent();
|
||||
bool consumeRemovedEvent();
|
||||
bool forceRemount();
|
||||
|
||||
void printCardInfo();
|
||||
bool ensureDirRecursive(const char* path);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue