summaryrefslogtreecommitdiff
path: root/app/include/zmk
diff options
context:
space:
mode:
authorJP Bonn <jp-keyword-bitbucket.d58644@jpbonn.com>2021-03-06 22:45:51 -0700
committerPete Johanson <peter@peterjohanson.com>2021-03-10 18:07:18 -0500
commitc643f1cd961307490a7edee29e4a68da85967a42 (patch)
treed32c8c41389cd4ce75c474aa314413d943796e86 /app/include/zmk
parentb8a8ecd59daa9575ff027bd3afe379d04cd82d66 (diff)
added battery.h, last_state_of_charge to uint8_t
Diffstat (limited to 'app/include/zmk')
-rw-r--r--app/include/zmk/battery.h9
-rw-r--r--app/include/zmk/events/battery_state_changed.h2
2 files changed, 9 insertions, 2 deletions
diff --git a/app/include/zmk/battery.h b/app/include/zmk/battery.h
new file mode 100644
index 0000000..f62219c
--- /dev/null
+++ b/app/include/zmk/battery.h
@@ -0,0 +1,9 @@
+/*
+ * Copyright (c) 2021 The ZMK Contributors
+ *
+ * SPDX-License-Identifier: MIT
+ */
+
+#pragma once
+
+uint8_t zmk_battery_state_of_charge();
diff --git a/app/include/zmk/events/battery_state_changed.h b/app/include/zmk/events/battery_state_changed.h
index c03f647..6a003d8 100644
--- a/app/include/zmk/events/battery_state_changed.h
+++ b/app/include/zmk/events/battery_state_changed.h
@@ -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); \ No newline at end of file