diff --git a/main.c b/main.c --- a/main.c +++ b/main.c @@ -16,10 +16,6 @@ #include "usb_device.h" #include "usbd_cdc_if.h" - -// Prototypes -void process(); - therm_settings_t set; therm_status_t status; @@ -32,7 +28,8 @@ int main(void) systemclock_init(); // Unset bootloader option bytes (if set) - void bootloader_unset(void); + // FIXME this was never getting called. Try again sometime. + //bootloader_unset(); // Init GPIO gpio_init(); @@ -42,7 +39,7 @@ int main(void) // set.val.usb_plugged = // USB startup delay - HAL_Delay(1000); + HAL_Delay(500); HAL_GPIO_WritePin(LED_POWER, 1); // Enter into bootloader if up button pressed on boot @@ -86,11 +83,11 @@ int main(void) ssd1306_DrawString("therm v0.2", 1, 40); ssd1306_DrawString("protofusion.org/therm", 3, 0); - HAL_Delay(1500); + HAL_Delay(1000); flash_restore(&set); - HAL_Delay(1500); + HAL_Delay(1000); ssd1306_clearscreen(); // Soft timers