From 03a4180c9cb9854108b5a6cb2d0e8cbdf49992a4 Mon Sep 17 00:00:00 2001 From: Robin Dietzel Date: Fri, 13 Jan 2023 11:28:18 +0100 Subject: [PATCH] BUGFIX: increase value instead of pointer --- Middlewares/floatpump/Src/Menu_Entry_Type_Numeric.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Middlewares/floatpump/Src/Menu_Entry_Type_Numeric.cpp b/Middlewares/floatpump/Src/Menu_Entry_Type_Numeric.cpp index 29b0834..d6b6451 100644 --- a/Middlewares/floatpump/Src/Menu_Entry_Type_Numeric.cpp +++ b/Middlewares/floatpump/Src/Menu_Entry_Type_Numeric.cpp @@ -24,11 +24,11 @@ namespace floatpump { } void Menu_Entry_Type_Numeric::u_increase(uint16_t steps) { - m_value++; + (*m_value)++; } void Menu_Entry_Type_Numeric::u_decrease(uint16_t steps) { - m_value--; + (*m_value)--; } bool Menu_Entry_Type_Numeric::isEntered() {