Multilevel menus working with key repeat
This commit is contained in:
@@ -26,11 +26,11 @@ uint8_t keyval;
|
||||
extern uint8_t Port_State[];
|
||||
|
||||
#if 1
|
||||
void pro_key(void)
|
||||
void pro_key(uint32_t pressed)
|
||||
{
|
||||
uint32_t tmp_frqx;
|
||||
|
||||
switch(KEY_GetPressed())//(key_bits)
|
||||
switch(pressed)//(key_bits)
|
||||
{
|
||||
//TODO: cases need to use the key #defines from keys.c and keys.h
|
||||
case ON_OFF_KEY: // Begin Primary Key
|
||||
@@ -75,9 +75,9 @@ void pro_key(void)
|
||||
break;
|
||||
|
||||
|
||||
case MENU_KEY:
|
||||
Task = MENU_TASK; // display the menus
|
||||
break;
|
||||
// case MENU_KEY:
|
||||
// Task = MENU_TASK; // display the menus
|
||||
// break;
|
||||
|
||||
|
||||
case MODE_KEY: // End Primary Key
|
||||
|
||||
Reference in New Issue
Block a user