From 0f8d84082a4e7e67fc0a98044e63b2bb4bd88e26 Mon Sep 17 00:00:00 2001 From: 3d-gussner <3d.gussner@gmail.com> Date: Fri, 16 Sep 2022 19:11:11 +0200 Subject: [PATCH] Update button menu documentation as there are 1/2/3 options --- Firmware/mmu2_reporting.cpp | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/Firmware/mmu2_reporting.cpp b/Firmware/mmu2_reporting.cpp index 1a63a9291..22088fa2c 100644 --- a/Firmware/mmu2_reporting.cpp +++ b/Firmware/mmu2_reporting.cpp @@ -52,7 +52,7 @@ static void ReportErrorHookStaticRender(uint8_t ei) { //! |MMU FW update needed| <- title/header of the error: max 20 characters //! |prusa3d.com/ERR04504| <- URL 20 characters //! |FI:1 FS:1 5>3 t201°| <- status line, t is thermometer symbol - //! |>Retry >Done >MoreW| <- buttons + //! |>Retry >Done >MoreW | <- buttons bool two_choices = false; // Read and determine what operations should be shown on the menu @@ -144,6 +144,24 @@ static uint8_t ReportErrorHookMonitor(uint8_t ei) { } // Update '>' render only + //! @brief Button menu + //! + //! @code{.unparsed} + //! |01234567890123456789| + //! | | + //! | | + //! | | + //! |>(left) | + //! ---------------------- + //! Three choices + //! |>(left)>(mid)>(righ)| + //! ---------------------- + //! Two choises + //! ---------------------- + //! |>(left) >(mid) | + //! ---------------------- + //! @endcode + // lcd_set_cursor(0, 3); lcd_print(current_selection == LCD_LEFT_BUTTON_CHOICE ? '>': ' '); if (two_choices == false)