added battery.h, last_state_of_charge to uint8_t

This commit is contained in:
JP Bonn
2021-03-06 22:45:51 -07:00
committed by Pete Johanson
parent b8a8ecd59d
commit c643f1cd96
3 changed files with 15 additions and 7 deletions

View File

@@ -0,0 +1,9 @@
/*
* Copyright (c) 2021 The ZMK Contributors
*
* SPDX-License-Identifier: MIT
*/
#pragma once
uint8_t zmk_battery_state_of_charge();

View File

@@ -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);