pre-commit: re-format using clang-format hook (v18.1.8)

This commit is contained in:
Maxime Vincent
2024-09-13 21:39:26 +02:00
committed by Pete Johanson
parent 82a22d731b
commit 67d595f29f
16 changed files with 45 additions and 59 deletions

View File

@@ -65,7 +65,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);
return (struct battery_status_state) {
return (struct battery_status_state){
.level = (ev != NULL) ? ev->state_of_charge : zmk_battery_state_of_charge(),
#if IS_ENABLED(CONFIG_USB_DEVICE_STACK)
.usb_present = zmk_usb_is_powered(),