From eab869f5cc4e379910b6285c409af1e67ea4d28d Mon Sep 17 00:00:00 2001 From: pa-pa <(none)> Date: Sat, 23 Nov 2019 23:28:03 +0100 Subject: [PATCH] add new APIs to NoBattery class --- BatterySensor.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/BatterySensor.h b/BatterySensor.h index 12dd3aa4..f90e1e7f 100644 --- a/BatterySensor.h +++ b/BatterySensor.h @@ -33,6 +33,8 @@ class NoBattery { uint8_t current () const { return 0; } bool critical () const { return false; } bool low () const { return false; } + void setIdle () {} + void unsetIdle () {} }; #ifdef ARDUINO_ARCH_AVR