added battery.h, last_state_of_charge to uint8_t
This commit is contained in:
parent
b8a8ecd59d
commit
c643f1cd96
3 changed files with 15 additions and 7 deletions
9
app/include/zmk/battery.h
Normal file
9
app/include/zmk/battery.h
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
/*
|
||||
* Copyright (c) 2021 The ZMK Contributors
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
uint8_t zmk_battery_state_of_charge();
|
||||
|
|
@ -14,6 +14,4 @@ struct zmk_battery_state_changed {
|
|||
uint8_t state_of_charge;
|
||||
};
|
||||
|
||||
int32_t zmk_battery_state_of_charge();
|
||||
|
||||
ZMK_EVENT_DECLARE(zmk_battery_state_changed);
|
||||
Loading…
Add table
Add a link
Reference in a new issue