Update app/src/rgb_underglow.c
Co-authored-by: Pete Johanson <peter@peterjohanson.com>
This commit is contained in:
parent
badf3271a2
commit
75750ec1c1
1 changed files with 1 additions and 2 deletions
|
@ -272,8 +272,7 @@ static int zmk_rgb_underglow_init(const struct device *_arg) {
|
|||
#endif
|
||||
|
||||
#if IS_ENABLED(CONFIG_ZMK_RGB_UNDERGLOW_AUTO_OFF_USB)
|
||||
if (!zmk_usb_is_powered())
|
||||
state.on = false;
|
||||
state.on = zmk_usb_is_powered();
|
||||
#endif
|
||||
|
||||
k_timer_start(&underglow_tick, K_NO_WAIT, K_MSEC(50));
|
||||
|
|
Loading…
Add table
Reference in a new issue