diff --git a/code/main.c b/code/main.c index 8612990..2f520da 100644 --- a/code/main.c +++ b/code/main.c @@ -243,7 +243,7 @@ int16_t eeprom_idx = 0; uint8_t spool_attached = 0; uint8_t spool_counting = 0; -uint32_t sleep_when_ms = 0; +uint32_t sleep_when_ms = DISPLAY_DELAY; uint32_t long_press_when_ms = 0xFFFFFFFF; uint8_t count_highlight = 0xFF; @@ -512,13 +512,12 @@ int main() read_battery(&battery_mAh, &battery_mV, &battery_temp); // Attempt to attach spool on initial startup - // attach_detach_spool(); + attach_detach_spool(); display_enable(1); print_mm(); print_direction(); print_battery_icon(); - while (1); state = STATE_IDLE; sei();