aqhome-tool: fixed a bug.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user