fix: change weight parameter type to int16_t in oledShowWeight function

This commit is contained in:
Manuel Weiser committed 2026-03-09 19:25:01 +01:00
1 parent 9311162463
commit 4d318bf4ec
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -168,7 +168,7 @@ void loop() {
int16_t displayWeight = getFilteredDisplayWeight();
if (mainTaskWasPaused || (weight != lastWeight && (nfcReaderState == NFC_IDLE || tagProcessed)))
{
(displayWeight < 2) ? ((displayWeight < -2) ? oledDisplayText("!! -0") : oledShowWeight(0)) : oledShowWeight(displayWeight);
oledShowWeight((abs(displayWeight) < 2) ? 0 : displayWeight);
oledSetPriority(DISPLAY_PRIORITY_STATUS, 0); // Weight can always be overwritten
}
mainTaskWasPaused = false;