mirror of
https://github.com/ARMSX2/ARMSX2.git
synced 2026-08-24 16:50:16 -07:00
Float.MIN_VALUE is the smallest POSITIVE float in Kotlin and Java (1.4e-45); the most negative is -Float.MAX_VALUE. The overlay hides a figure by testing `value > ARMSX2_THERMAL_NONE` against -1000.0f, so the sentinel sailed through as a real reading and printed as "0°". Both sides are -1000.0f now. Every use is an exact assignment or comparison against the constant, and the plausibility gate (-20..150) means a real reading can never collide with it. Worth noting when this was visible: never, on a device whose zones all resolve, because the sentinel is then never sent. It shows up only on the devices the fallback exists for -- a readable CPU zone and no GPU zone would print "CPU 47° GPU 0°". Found by reading the code during the ARMSX3 port, not by testing, which is the only way it could have been found.