Fix typecast for key repeat timer, and some header fixes.

This commit is contained in:
Dave 2020-03-14 10:37:43 -05:00
parent ed761974e6
commit 04321da29c
1 changed files with 8 additions and 2 deletions

View File

@ -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)