Better messages flowing

This commit is contained in:
Ben V. Brown
2020-06-16 20:21:26 +10:00
parent 54a8aa7ac6
commit 2fd06887e8
18 changed files with 132 additions and 75 deletions

View File

@@ -43,6 +43,8 @@ int main(void) {
OLED::setFont(0); // default to bigger font
// Testing for which accelerometer is mounted
resetWatchdog();
usb_pd_available = usb_pd_detect();
resetWatchdog();
settingsWereReset = restoreSettings(); // load the settings from flash
if (MMA8652FC::detect()) {
PCBVersion = 1;
@@ -58,8 +60,6 @@ int main(void) {
systemSettings.sensitivity = 0;
}
resetWatchdog();
usb_pd_available = usb_pd_detect();
resetWatchdog();
/* Create the thread(s) */
/* definition and creation of GUITask */