chore: format file
This commit is contained in:
parent
3d5700ec02
commit
f09976844f
2 changed files with 18 additions and 2 deletions
17
.vscode/c_cpp_properties.json
vendored
Normal file
17
.vscode/c_cpp_properties.json
vendored
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
{
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"name": "Linux",
|
||||||
|
"includePath": [
|
||||||
|
"${workspaceFolder}/**"
|
||||||
|
],
|
||||||
|
"defines": [],
|
||||||
|
"compilerPath": "/usr/bin/gcc",
|
||||||
|
"cStandard": "gnu17",
|
||||||
|
"cppStandard": "c++17",
|
||||||
|
"intelliSenseMode": "linux-gcc-arm",
|
||||||
|
"compileCommands": "${workspaceFolder}/app/build/compile_commands.json"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"version": 4
|
||||||
|
}
|
|
@ -57,8 +57,7 @@ void battery_status_update_cb(struct battery_status_state state) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct battery_status_state battery_status_get_state(const zmk_event_t *eh) {
|
static struct battery_status_state battery_status_get_state(const zmk_event_t *eh) {
|
||||||
const struct zmk_battery_state_changed *ev =
|
const struct zmk_battery_state_changed *ev = as_zmk_battery_state_changed(eh);
|
||||||
as_zmk_battery_state_changed(eh);
|
|
||||||
return (struct battery_status_state) {
|
return (struct battery_status_state) {
|
||||||
.level = ev->state_of_charge,
|
.level = ev->state_of_charge,
|
||||||
#if IS_ENABLED(CONFIG_USB_DEVICE_STACK)
|
#if IS_ENABLED(CONFIG_USB_DEVICE_STACK)
|
||||||
|
|
Loading…
Add table
Reference in a new issue