Skip to content

remove BLE dependency for Battery widget #22

@kumbung01

Description

@kumbung01

hello, thank you for this repo,

I'm currently using ESB for connection, which is capable of reporting battery level.

however, the dependency for BLE prevents from initializing battery widget.

Can you remove dependency for BLE with battery widget?

you just have to remove IS_ENABLED(CONFIG_ZMK_BLE), and it works fine.

thank you.

the code is in custom_status_screen.c, line 76.
#if IS_ENABLED(CONFIG_ZMK_BATTERY) && IS_ENABLED(CONFIG_ZMK_BLE) zmk_widget_dongle_battery_status_init(&dongle_battery_status_widget, screen); lv_obj_align(zmk_widget_dongle_battery_status_obj(&dongle_battery_status_widget), LV_ALIGN_TOP_RIGHT, 0, 0); #endif

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions