0_1592860978166_40e7c48f-ca80-431d-82c3-efcb57ba89cd-image.png
Converts to;
if bRunFan and bRunFan != bRunFanOld:
fPvHrs = 0.01
if bTm6min and bRunFan:
fPvHrs = fPvHrs + 0.01
bRunFanOld = bRunFan
Thanks M5stack, this worked.
I didn't want to divide by 10 because I would have to do that everywhere, slow the execution speed, its a slippery slope. The esp32 has very long divide instruction time compared to addition and multiplication.