Skip to content

Commit

Permalink
Add charging indication to battery event
Browse files Browse the repository at this point in the history
  • Loading branch information
ReFil committed Mar 21, 2024
1 parent 3f01d25 commit 8c27d6a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/include/zmk/events/battery_state_changed.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@
struct zmk_battery_state_changed {
// TODO: Other battery channels
uint8_t state_of_charge;
bool charging;
};

ZMK_EVENT_DECLARE(zmk_battery_state_changed);

struct zmk_peripheral_battery_state_changed {
uint8_t source;
// TODO: Other battery channels
// Charging state not broadcast over BAS so no need to have it in peripheral event
uint8_t state_of_charge;
};

Expand Down

0 comments on commit 8c27d6a

Please sign in to comment.