From f09976844f0417e1d1b95bfed39da88d3fdaea9b Mon Sep 17 00:00:00 2001 From: Gabor Hornyak Date: Thu, 21 Jul 2022 20:35:43 +0000 Subject: [PATCH] chore: format file --- .vscode/c_cpp_properties.json | 17 +++++++++++++++++ app/src/display/widgets/battery_status.c | 3 +-- 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 .vscode/c_cpp_properties.json diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json new file mode 100644 index 00000000..e41cd900 --- /dev/null +++ b/.vscode/c_cpp_properties.json @@ -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 +} \ No newline at end of file diff --git a/app/src/display/widgets/battery_status.c b/app/src/display/widgets/battery_status.c index ddfc3206..8b8ab479 100644 --- a/app/src/display/widgets/battery_status.c +++ b/app/src/display/widgets/battery_status.c @@ -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) { - const struct zmk_battery_state_changed *ev = - as_zmk_battery_state_changed(eh); + const struct zmk_battery_state_changed *ev = as_zmk_battery_state_changed(eh); return (struct battery_status_state) { .level = ev->state_of_charge, #if IS_ENABLED(CONFIG_USB_DEVICE_STACK)