From 5160c90690c6c3881eec1aa7392d1473c9f865b3 Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Sun, 20 Mar 2022 13:07:39 +0000 Subject: x1000: bootloader: add screenshot function Screenshots of the recovery menu will be useful for documentation. This can be disabled by turning off HAVE_BOOTLOADER_SCREENDUMP in the target config file if the bootloader should ever run up against max size limits. Change-Id: I62ec1e465df2ca7a8a0e78625d88b31f6c4ef078 --- bootloader/x1000/recovery.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bootloader/x1000/recovery.c') diff --git a/bootloader/x1000/recovery.c b/bootloader/x1000/recovery.c index d70c3b9305..c53fa376b9 100644 --- a/bootloader/x1000/recovery.c +++ b/bootloader/x1000/recovery.c @@ -65,6 +65,9 @@ static const struct menuitem recovery_items[] = { static const struct menuitem debug_menu_items[] = { {MENUITEM_HEADING, "Debug tools", NULL}, +#ifdef HAVE_SCREENDUMP + {MENUITEM_ACTION, "Enable screenshots", &screenshot_enable}, +#endif #ifdef OF_PLAYER_ADDR {MENUITEM_ACTION, "Dump OF player", &dump_of_player}, #endif -- cgit v1.2.3