Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: net lpc1768 crypto clock web log
Diff: http-derived/nmea/http-nmea-query.c
- Revision:
- 43:bf39371b4576
- Parent:
- 36:2983e45eeb49
--- a/http-derived/nmea/http-nmea-query.c Mon Mar 11 16:47:04 2019 +0000 +++ b/http-derived/nmea/http-nmea-query.c Thu Mar 14 16:57:28 2019 +0000 @@ -1,5 +1,3 @@ -#include <string.h> -#include <stdlib.h> #include "http.h" #include "settings.h" @@ -11,7 +9,7 @@ char* pValue; pQuery = HttpQuerySplit(pQuery, &pName, &pValue); - int value = (int)strtol(pValue, NULL, 10); + int value = HttpQueryValueAsInt(pValue); if (HttpSameStr(pName, "sensorheight")) SetSensorHeight(value); if (HttpSameStr(pName, "nmeamsgtrace")) ChgNmeaMsgTrace();