diff --git a/apps/aqhome-tool/data/setdata.c b/apps/aqhome-tool/data/setdata.c index 8116dcc..b6122ab 100644 --- a/apps/aqhome-tool/data/setdata.c +++ b/apps/aqhome-tool/data/setdata.c @@ -261,9 +261,9 @@ int _readDouble(const char *s, double *pDouble) } } else if (l>1 && s[0]=='0' && ((tolower(s[1])=='x') || tolower(s[1])=='b')) { - unsigned int h; + int h; - if (1==sscanf(s, "%u", &h)) { + if (1==sscanf(s, "%i", &h)) { *pDouble=(double) h; return 0; }