esp-rfid
esp-rfid copied to clipboard
esprfid_js.h: saventp(): Invalid use of parseInt() where there is a possible requirement for a float
Greetings - the DropDownTimezone list contains several option values with fractional remainders.
Currently, the esprfid_js.h: saventp(): calls:
config.ntp.timezone = parseInt(document.getElementById("DropDownTimezone").value);
The proper call would be:
config.ntp.timezone = parseFloat(document.getElementById("DropDownTimezone").value);
Best regards - Terry