1
0
forked from me/IronOS

Hotfix: BMA Accel wedges I2C if probed too fast after boot

Only an issue on Pinecil as it boots much faster than Miniware units.
This commit is contained in:
Ben V. Brown
2021-01-17 20:13:02 +11:00
parent cb34fb56e3
commit 2425902fbc
8 changed files with 25 additions and 30 deletions

View File

@@ -749,7 +749,7 @@ void showWarnings() {
// In this case though, we dont want to nag the user _too_ much
// So only show first 2 times
while (DetectedAccelerometerVersion == ACCELEROMETERS_SCANNING) {
osDelay(1);
osDelay(5);
}
// Display alert if accelerometer is not detected
if (DetectedAccelerometerVersion == NO_DETECTED_ACCELEROMETER) {
@@ -800,7 +800,6 @@ void startGUITask(void const *argument __unused) {
ButtonState buttons = getButtonState();
if (buttons)
ticks = xTaskGetTickCount(); // make timeout now so we will exit
OLED::refresh();
GUIDelay();
}