summaryrefslogtreecommitdiff
path: root/apps/debug_menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/debug_menu.c')
-rw-r--r--apps/debug_menu.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index a8eb786f83..8f24ac95f6 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -1449,11 +1449,11 @@ static char* tsc2100_debug_getname(int selected_item, void * data, char *buffer)
1449} 1449}
1450static int tsc2100debug_action_callback(int action, struct gui_synclist *lists) 1450static int tsc2100debug_action_callback(int action, struct gui_synclist *lists)
1451{ 1451{
1452 int *page = (int*)lists->gui_list[SCREEN_MAIN].data; 1452 int *page = (int*)lists->data;
1453 if (action == ACTION_STD_OK) 1453 if (action == ACTION_STD_OK)
1454 { 1454 {
1455 *page = (*page+1)%3; 1455 *page = (*page+1)%3;
1456 snprintf(lists->gui_list[SCREEN_MAIN].title, 32, 1456 snprintf(lists->title, 32,
1457 "tsc2100 registers - Page %d", *page); 1457 "tsc2100 registers - Page %d", *page);
1458 return ACTION_REDRAW; 1458 return ACTION_REDRAW;
1459 } 1459 }
@@ -1667,10 +1667,10 @@ static bool view_battery(void)
1667static int disk_callback(int btn, struct gui_synclist *lists) 1667static int disk_callback(int btn, struct gui_synclist *lists)
1668{ 1668{
1669 tCardInfo *card; 1669 tCardInfo *card;
1670 int *cardnum = (int*)lists->gui_list[SCREEN_MAIN].data; 1670 int *cardnum = (int*)lists->data;
1671 unsigned char card_name[7]; 1671 unsigned char card_name[7];
1672 unsigned char pbuf[32]; 1672 unsigned char pbuf[32];
1673 char *title = lists->gui_list[SCREEN_MAIN].title; 1673 char *title = lists->title;
1674 static const unsigned char i_vmin[] = { 0, 1, 5, 10, 25, 35, 60, 100 }; 1674 static const unsigned char i_vmin[] = { 0, 1, 5, 10, 25, 35, 60, 100 };
1675 static const unsigned char i_vmax[] = { 1, 5, 10, 25, 35, 45, 80, 200 }; 1675 static const unsigned char i_vmax[] = { 1, 5, 10, 25, 35, 45, 80, 200 };
1676 static const unsigned char *kbit_units[] = { "kBit/s", "MBit/s", "GBit/s" }; 1676 static const unsigned char *kbit_units[] = { "kBit/s", "MBit/s", "GBit/s" };