Browse Source

fix(backlight): Improve initial power on behaviour

xmkb
ReFil 3 years ago committed by Pete Johanson
parent
commit
38e079ef37
  1. 4
      app/src/backlight.c

4
app/src/backlight.c

@ -91,7 +91,9 @@ static int zmk_backlight_init(const struct device *_arg) { @@ -91,7 +91,9 @@ static int zmk_backlight_init(const struct device *_arg) {
LOG_ERR("Failed to load backlight settings: %d", rc);
}
#endif
#if IS_ENABLED(CONFIG_ZMK_BACKLIGHT_AUTO_OFF_USB)
state.on = zmk_usb_is_powered();
#endif
return zmk_backlight_update();
}

Loading…
Cancel
Save