From fdf77e6af52fab2f97a7320230e1ad489bf53277 Mon Sep 17 00:00:00 2001 From: "Gary E. Miller" Date: Sat, 14 Jul 2018 12:29:48 -0700 Subject: chared_json.c: isnan() -> isfinite() Thanks to Virgin Orbit for their support on this patch. --- shared_json.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1