esp-rfid icon indicating copy to clipboard operation
esp-rfid copied to clipboard

esprfid_js.h: saventp(): Invalid use of parseInt() where there is a possible requirement for a float

Open microfoundry opened this issue 5 months ago • 0 comments

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

microfoundry avatar Aug 28 '24 08:08 microfoundry