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.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index 02b86feefc..0b4be9d72d 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -1612,6 +1612,18 @@ static bool dbg_sound(void)
1612 return false; 1612 return false;
1613} 1613}
1614 1614
1615#ifdef HAVE_LCD_BITMAP
1616extern bool do_screendump_instead_of_usb;
1617
1618bool dbg_screendump(void)
1619{
1620 do_screendump_instead_of_usb = !do_screendump_instead_of_usb;
1621 splash(HZ, true, "Screendump %s",
1622 do_screendump_instead_of_usb?"enabled":"disabled");
1623 return false;
1624}
1625#endif
1626
1615bool debug_menu(void) 1627bool debug_menu(void)
1616{ 1628{
1617 int m; 1629 int m;
@@ -1635,6 +1647,7 @@ bool debug_menu(void)
1635#endif 1647#endif
1636#ifdef HAVE_LCD_BITMAP 1648#ifdef HAVE_LCD_BITMAP
1637 { "View battery", -1, view_battery }, 1649 { "View battery", -1, view_battery },
1650 { "Screendump", -1, dbg_screendump },
1638#endif 1651#endif
1639 { "View HW info", -1, dbg_hw_info }, 1652 { "View HW info", -1, dbg_hw_info },
1640 { "View partitions", -1, dbg_partitions }, 1653 { "View partitions", -1, dbg_partitions },