sharandac / My-TTGO-Watch

A GUI named hedge for smartwatch like devices based on ESP32. Currently support for T-Watch2020 (V1,V2,V3), T-Watch2021, M5Paper, M5Core2 and native Linux support for testing.
GNU General Public License v2.0
524 stars 246 forks source link

replaced nan usage in calc #311

Closed d03n3rfr1tz3 closed 2 years ago

d03n3rfr1tz3 commented 2 years ago

replaced the usage of nan as default state in calc to fix strange behavior mentioned in #310 the default value is now 0, which is the same is it is displayed. if a miscalculation happens (divide by zero), the resulting nan or inf will not behave as a 0 now, as it was before.