summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shared_json.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared_json.c b/shared_json.c
index b455081c..38957680 100644
--- a/shared_json.c
+++ b/shared_json.c
@@ -63,7 +63,7 @@ int json_device_read(const char *buf,
if (status != 0)
return status;
- if (isnan(dev->activated)!=0) {
+ if (isfinite(dev->activated) == 0) {
if (tbuf[0] == '\0')
dev->activated = NAN;
else