Dependencies: net 1-wire lpc1768 crypto clock web fram log
/media/uploads/andrewboyson/heating.sch
/media/uploads/andrewboyson/heating.brd
/media/uploads/andrewboyson/eagle.epf
Diff: http-derived/radiator/http-radiator-query.c
- Revision:
- 39:5d8a37c921c3
- Parent:
- 35:bb8a6d1c034c
- Child:
- 47:229338b3adcb
--- a/http-derived/radiator/http-radiator-query.c Mon Mar 11 16:47:54 2019 +0000 +++ b/http-derived/radiator/http-radiator-query.c Thu Mar 14 16:58:03 2019 +0000 @@ -10,7 +10,7 @@ char* pName; char* pValue; pQuery = HttpQuerySplit(pQuery, &pName, &pValue); - int value = (int)strtol(pValue, NULL, 10); + int value = HttpQueryValueAsInt(pValue); if (HttpSameStr(pName, "nighttemp")) RadiatorSetNightTemperature(value); if (HttpSameStr(pName, "frosttemp")) RadiatorSetFrostTemperature(value);