#zmk-rgbled-widget not working on 4.1

1 messages · Page 1 of 1 (latest)

gloomy garden
#

Looks like the move to 4.1 has broken the widget at least on my boards. I moved them to the xiao_ble but am still getting build errors:

Sorry for the ping @wraith agate but you’re likely the only one who knows the fix 😅

zmk-config/zmk-config/zmk-rgbled-widget/src/widget.c
In file included from /__w/zmk-config/zmk-config/zephyr/include/zephyr/toolchain.h:52,
                 from /__w/zmk-config/zmk-config/zephyr/include/zephyr/sys/__assert.h:11,
                 from /__w/zmk-config/zmk-config/zephyr/include/zephyr/irq_multilevel.h:15,
                 from /__w/zmk-config/zmk-config/zephyr/include/zephyr/devicetree.h:20,
                 from /__w/zmk-config/zmk-config/zephyr/include/zephyr/device.h:12,
                 from /__w/zmk-config/zmk-config/zmk-rgbled-widget/src/widget.c:1:
/__w/zmk-config/zmk-config/zephyr/include/zephyr/toolchain/gcc.h:87:36: error: static assertion failed: "An alias for a red LED is not found for RGBLED_WIDGET"
   87 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert((EXPR), "" MSG)
      |                                    ^~~~~~~~~~~~~~
/__w/zmk-config/zmk-config/zmk-rgbled-widget/src/widget.c:33:1: note: in expansion of macro 'BUILD_ASSERT'
   33 | BUILD_ASSERT(DT_NODE_EXISTS(DT_ALIAS(led_red)),
      | ^~~~~~~~~~~~
compilation terminated due to -Wfatal-errors.

covert jasper
#

just ran into this too. seems like it's because the rgbled-adapter shield doesn't yet have an overlay for xiao_ble only the old seeeduino_xiao_ble

wraith agate
#

Ah I'll push the board adapter when I get home, I have it locally

wraith agate
#

@gloomy garden pushed it, let me know if you have trouble