nodemcu / nodemcu-firmware

Lua based interactive firmware for ESP8266, ESP8285 and ESP32
https://nodemcu.readthedocs.io
MIT License
7.64k stars 3.12k forks source link

Fix node.compile fwrite size check. #3520

Closed h2zero closed 2 years ago

h2zero commented 2 years ago

The return value from fwrite was being checked against the size of the data rather than the number of bytes written. This caused node.compile() to falsely return failure.

jmattsson commented 2 years ago

Nice catch, thanks!