From 89625f8966f381f7b84d30611a9d197b961c4f1a Mon Sep 17 00:00:00 2001 From: Fabian Schieder Date: Mon, 2 Feb 2026 23:39:13 +0000 Subject: [PATCH] main.c aktualisiert --- main.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/main.c b/main.c index e234041..63e88ee 100644 --- a/main.c +++ b/main.c @@ -278,7 +278,7 @@ uint8_t toPercent(uint8_t value, uint8_t max) return (value * 100 + max / 2) / max; } -void setFuellstand(uint8_t value) // setzt Füllstand Text über progress bar +void setFuellstand(uint8_t value) { char buf[20]; @@ -288,7 +288,7 @@ void setFuellstand(uint8_t value) // setzt Füllstand Text über progress bar fuellstand(toPercent(value, 255)); } -int SwitchesToInt(void) // DIL Leiste zu Int +int SwitchesToInt(void) { int result = 0; uint8_t i = 0; @@ -298,12 +298,11 @@ int SwitchesToInt(void) // DIL Leiste zu Int if (!*Switch[i]) { result |= (1 << i); - } } + } + } return result; } - - int main(void) { PortConfig();