From b0f7500004bd1623fcecf5e0d16dcda09da04c8d Mon Sep 17 00:00:00 2001 From: jerrrrycho Date: Mon, 30 Nov 2026 00:12:58 +0100 Subject: [PATCH] comment: the wiper mask is read into an int, not the uint8_t --- physics/components/fizparser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/physics/components/fizparser.cpp b/physics/components/fizparser.cpp index 4aabe9a75..ece8c004c 100644 --- a/physics/components/fizparser.cpp +++ b/physics/components/fizparser.cpp @@ -447,7 +447,7 @@ bool physics::Vehicle::readWiperList(std::string const &line) WriteLog("Read WiperList: number of entries exceeded capacity of the data table"); return false; } - // the mask of the wipers is a number: read into the uint8_t directly, the parser would take only its first character + // the mask of the wipers is a number: read into an int and clamped, as the parser would take only its first character for a uint8_t int bytesum{0}; parser >> bytesum >> WiperList[idx].WiperSpeed >> WiperList[idx].interval >> WiperList[idx].outBackDelay; WiperList[idx].byteSum = static_cast(std::clamp(bytesum, 0, 255));