You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Safety Checks for UI, fix for cfg exceeding LED limit
* improvements to low heap check
* add `isPlaceholder()` to bus, some fixes
* remove `disableForceReconnect` for better future implementation
* add "glitch gating" for C3 and check heapy every 5 seconds instead of every secondd
* replace magic number with the correct define, more robust bus defer by look-ahead
In the event that a Bus fails to initialize, or the memory validation
fails, keep the configuration around so the settings contents don't
change out from under the user.
---------
Co-authored-by: Will Miles <will@willmiles.net>
errorFlag = ERR_NORAM; // alert UI TODO: make this a distinct error: not enough memory for bus
1215
+
use_placeholder = true;
1216
+
}
1217
+
if (BusManager::add(bus, use_placeholder) != -1) {
1218
+
mem += BusManager::busses.back()->getBusSize();
1219
+
if (Bus::isDigital(bus.type) && !Bus::is2Pin(bus.type) && BusManager::busses.back()->isPlaceholder()) digitalCount--; // remove placeholder from digital count
1219
1220
}
1220
1221
}
1221
1222
DEBUG_PRINTF_P(PSTR("LED buffer size: %uB/%uB\n"), mem + maxI2S, BusManager::memUsage());
0 commit comments