Skip to content

Commit

Permalink
add new APIs to NoBattery class
Browse files Browse the repository at this point in the history
  • Loading branch information
pa-pa committed Nov 23, 2019
1 parent dadb1e0 commit eab869f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions BatterySensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eab869f

Please sign in to comment.