From e22118e4b1abacf7b935ef2f2d56c5f3050ee10b Mon Sep 17 00:00:00 2001 From: jlino Date: Fri, 23 Jun 2017 16:27:52 +0100 Subject: [PATCH] cancel in menu to go back cancel in menu to go back --- brew.ino | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/brew.ino b/brew.ino index f782565..b391329 100644 --- a/brew.ino +++ b/brew.ino @@ -1436,7 +1436,11 @@ void runMenuProcessor( MenuData *data ) { data->_repaint = repaint; // Request repaint repaint = displayGenericMenu( &lcd, data ); // Display menu - if ( checkForEncoderSwitchPush( false ) ) { // Read selection + if ( checkForEncoderSwitchPush( true ) ) { // Read selection + if( cancel ) { + resetMenu( true ); + return; + } data->_selection = data->_position; } -- 2.24.1