Open c-o-m-m-a-n-d-e-r opened 3 years ago
Good Fox for ESP32, but this part change not needed (is wrong):
#ifdef ESP32
long m = pow(round(v), 0x7FF);
#else
long m = round(v) & 0x7FF;
#endif
Why? :-)
Because round(v) & 0x7f gives correct result on ESP32, checked via ETS5. Why the calculation on ESP32 should be different to ESP8266?
haha oh man ... you are right, sorry was writing from the autobahn ... ignore that please 🤣
quick try to implement ESP32