aqhome-tool: fixed a bug.

This commit is contained in:
Martin Preuss
2026-03-24 23:11:00 +01:00
parent c988876c79
commit 42874f27cd

View File

@@ -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;
}