Add battery changed callbacks (#25207)

This commit is contained in:
Joel Challis 2025-05-05 03:28:33 +01:00 committed by GitHub
parent 11c8b2841e
commit 5611a40064
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 44 additions and 0 deletions

View file

@ -31,4 +31,16 @@ void battery_task(void);
*/
uint8_t battery_get_percent(void);
/**
* \brief user hook called when battery level changed.
*
*/
void battery_percent_changed_user(uint8_t level);
/**
* \brief keyboard hook called when battery level changed.
*
*/
void battery_percent_changed_kb(uint8_t level);
/** \} */