From ea88dea43243fa56d0daeee168e121054ddfc85c Mon Sep 17 00:00:00 2001 From: Marek Bel Date: Fri, 24 Aug 2018 21:24:14 +0200 Subject: [PATCH] Fix memory overwrite. --- Firmware/menu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Firmware/menu.cpp b/Firmware/menu.cpp index c73b2843..8ae30021 100644 --- a/Firmware/menu.cpp +++ b/Firmware/menu.cpp @@ -342,7 +342,7 @@ static void _menu_edit_P(void) } if (LCD_CLICKED) { - *((int*)(_md->editValue)) = (int)lcd_encoder; + *((T)(_md->editValue)) = lcd_encoder; menu_back_no_reset(); } }