From 04321da29c10db0b7bf2baeb4bab95ff54a00bba Mon Sep 17 00:00:00 2001 From: Dave Date: Sat, 14 Mar 2020 10:37:43 -0500 Subject: [PATCH] Fix typecast for key repeat timer, and some header fixes. --- firmware/asdf/src/asdf_repeat.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/firmware/asdf/src/asdf_repeat.c b/firmware/asdf/src/asdf_repeat.c index ce69579..8d5b994 100644 --- a/firmware/asdf/src/asdf_repeat.c +++ b/firmware/asdf/src/asdf_repeat.c @@ -41,12 +41,12 @@ static key_timer_t key_repeat_timer; // // SIDE EFFECTS: see DESCRIPTION // -// COMPLEXITY: 1 +// COMPLEXITY: // void asdf_repeat_init(void) { repeat_state = base_repeat_state = ASDF_DEFAULT_REPEAT_STATE; - key_repeat_timer = (uint16_t) repeat_state; + key_repeat_timer = (key_repeat_timer) repeat_state; } // PROCEDURE: asdf_repeast_reset_count @@ -58,6 +58,8 @@ void asdf_repeat_init(void) // // SIDE EFFECTS: see DESCRIPTION // +// SCOPE: Public +// // COMPLEXITY: 1 // void asdf_repeat_reset_count(void) @@ -144,6 +146,8 @@ void asdf_repeat_activate(void) // down after REPEAT is released, and autorepeat mode is enabled, then restart // the autorepeat timer. Otherwise disable repeat. // +// SCOPE: Public +// // COMPLEXITY: 1 // void asdf_repeat_deactivate(void) @@ -163,6 +167,8 @@ void asdf_repeat_deactivate(void) // // NOTES: The key_repeat_timer is only decremented if it is nonzero. // +// SCOPE: Public +// // COMPLEXITY: 2 // uint8_t asdf_repeat(void)