From 3279cfabfc2db517d9c6350d44762cd44330b63a Mon Sep 17 00:00:00 2001 From: "Ben V. Brown" Date: Thu, 7 Jul 2022 23:13:29 +1000 Subject: [PATCH] Update GUIThread.cpp --- source/Core/Threads/GUIThread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Core/Threads/GUIThread.cpp b/source/Core/Threads/GUIThread.cpp index 93597ab2..ff84454c 100644 --- a/source/Core/Threads/GUIThread.cpp +++ b/source/Core/Threads/GUIThread.cpp @@ -42,7 +42,7 @@ void showWarnings(); #define BUTTON_INACTIVITY_TIME (60 * configTICK_RATE_HZ) static TickType_t lastHallEffectSleepStart = 0; static uint16_t min(uint16_t a, uint16_t b) { - if (a > b) + if (a > b) return b; else return a; @@ -776,7 +776,7 @@ void showDebugMenu(void) { break; case 11: // Tip resistance - OLED::printNumber(getTipResitanceX10() / 10, 2, FontStyle::SMALL); + OLED::printNumber(getTipResitanceX10() / 10, 5, FontStyle::SMALL); // large to pad over so that we cover ID left overs OLED::print(SymbolDot, FontStyle::SMALL); OLED::printNumber(getTipResitanceX10() % 10, 1, FontStyle::SMALL); case 12: