Update battery API to use NAN on error

This commit is contained in:
Benny Baumann
2020-09-07 11:52:42 +02:00
committed by cgzones
parent f805093589
commit 47e2cefe02
8 changed files with 29 additions and 20 deletions

View File

@ -1,7 +1,8 @@
#include <math.h>
#include "BatteryMeter.h"
void Battery_getData(double* level, ACPresence* isOnAC) {
*level = -1;
*level = NAN;
*isOnAC = AC_ERROR;
}