diff --git a/app/boards/arm/corneish_zen/widgets/battery_status.c b/app/boards/arm/corneish_zen/widgets/battery_status.c index 499e22a4..1450eea6 100644 --- a/app/boards/arm/corneish_zen/widgets/battery_status.c +++ b/app/boards/arm/corneish_zen/widgets/battery_status.c @@ -74,7 +74,7 @@ static struct battery_status_state battery_status_get_state(const zmk_event_t *e soc = zmk_battery_state_of_charge(); } - return (struct battery_status_state){ + return (struct battery_status_state) { .level = soc, #if IS_ENABLED(CONFIG_USB_DEVICE_STACK) .usb_present = zmk_usb_is_powered(), diff --git a/app/boards/shields/nice_view/widgets/status.c b/app/boards/shields/nice_view/widgets/status.c index 592c0551..d60fcf6c 100644 --- a/app/boards/shields/nice_view/widgets/status.c +++ b/app/boards/shields/nice_view/widgets/status.c @@ -218,7 +218,7 @@ static struct battery_status_state battery_status_get_state(const zmk_event_t *e soc = zmk_battery_state_of_charge(); } - return (struct battery_status_state){ + return (struct battery_status_state) { .level = soc, #if IS_ENABLED(CONFIG_USB_DEVICE_STACK) .usb_present = zmk_usb_is_powered(), diff --git a/app/src/display/widgets/battery_status.c b/app/src/display/widgets/battery_status.c index a3f7c9f2..98078d42 100644 --- a/app/src/display/widgets/battery_status.c +++ b/app/src/display/widgets/battery_status.c @@ -71,7 +71,7 @@ static struct battery_status_state battery_status_get_state(const zmk_event_t *e soc = zmk_battery_state_of_charge(); } - return (struct battery_status_state){ + return (struct battery_status_state) { .level = soc, #if IS_ENABLED(CONFIG_USB_DEVICE_STACK) .usb_present = zmk_usb_is_powered(),