From 47e2cefe02dffe00369e5630eb1e3f54174f20af Mon Sep 17 00:00:00 2001 From: Benny Baumann Date: Mon, 7 Sep 2020 11:52:42 +0200 Subject: Update battery API to use NAN on error --- unsupported/Battery.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'unsupported') diff --git a/unsupported/Battery.c b/unsupported/Battery.c index 080cf540..121d2e49 100644 --- a/unsupported/Battery.c +++ b/unsupported/Battery.c @@ -1,7 +1,8 @@ +#include #include "BatteryMeter.h" void Battery_getData(double* level, ACPresence* isOnAC) { - *level = -1; + *level = NAN; *isOnAC = AC_ERROR; } -- cgit v1.2.3