From b5cfd4d4cee792d6aae2e2a374e87d32f418788e Mon Sep 17 00:00:00 2001 From: nedko Date: Fri, 4 Nov 2022 22:05:38 +0200 Subject: [PATCH] Removed tests. PCB needs change --- code/main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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();