diff --git a/README.md b/README.md index a5e55b9..2f8775e 100644 --- a/README.md +++ b/README.md @@ -26,5 +26,5 @@ Trigalarm is meant to be adapted to your needs with as little confusion as possi - Some of the alarm scheduling code was taken from [Gentle Wake](https://github.com/SeaPea/GentleWake). It seems trusted by the community, so... I stole it! The beauty of open source, no AI needed! - A custom font was made to satisfy the need for something that looks like LECO but is monospaced. The version I made contains only numbers, period, and colon, but if you want to build off of it, [it's public](https://git.wetfence.xyz/RandyTheSilly/pebble-misc/src/branch/main/fonts) and easy to modify! -## Future Goals (2.1 and beyond) +## Future Goals (v2.1 and beyond) - Custom, self-hosted Pavlok API support (going to try some Bluetooth reverse engineering) diff --git a/src/c/main.c b/src/c/main.c index 9330135..5cf535d 100644 --- a/src/c/main.c +++ b/src/c/main.c @@ -109,6 +109,8 @@ static char *s_options_under[2]; ////////////////////// STATUS ////////////////////// +static void push_setter_window(); + static void click_handler_push_setter(void *recognizer, void *ctx) { s_highlight_pos = 0; s_skip_current_day = true; // setting the next alarm should assume the user meant tomorrow @@ -120,10 +122,6 @@ static void click_handler_exit(void *recognizer, void *ctx) { window_stack_pop_all(true); } -static void click_handler_retry(void *recognizer, void *ctx) { - window_stack_pop(true); -} - static void status_confirmation_click_config_provider(void *ctx) { window_single_click_subscribe(BUTTON_ID_BACK, click_handler_push_setter); window_single_click_subscribe(BUTTON_ID_SELECT, click_handler_exit); @@ -162,6 +160,7 @@ static void status_window_load(StatusWindowPurpose purpose) { static void status_window_unload() { text_layer_destroy(s_status_txt_layer); + window_destroy(s_status_window); } static void push_status_window(StatusWindowPurpose purpose) { @@ -450,7 +449,7 @@ static void update_for_new_triangle() { } static void increment_secs_since_last_input() { - if (s_secs_since_last_input < 10) { + if (s_secs_since_last_input < MAX_SECS_WITHOUT_INPUT) { s_secs_since_last_input++; } } diff --git a/src/c/main.h b/src/c/main.h index 498ff4e..480eef9 100644 --- a/src/c/main.h +++ b/src/c/main.h @@ -5,5 +5,3 @@ typedef enum STATUS_CONFIRMATION = 1, STATUS_SET_FAILURE = 2 } StatusWindowPurpose; - -static void push_setter_window();