[CI] Format code according to conventions (#12731)
Co-authored-by: QMK Bot <hello@qmk.fm>
This commit is contained in:
parent
d8167779cd
commit
39bc8163d0
@ -324,8 +324,7 @@ void led_matrix_task(void) {
|
|||||||
|
|
||||||
// Ideally we would also stop sending zeros to the LED driver PWM buffers
|
// Ideally we would also stop sending zeros to the LED driver PWM buffers
|
||||||
// while suspended and just do a software shutdown. This is a cheap hack for now.
|
// while suspended and just do a software shutdown. This is a cheap hack for now.
|
||||||
bool suspend_backlight =
|
bool suspend_backlight = suspend_state ||
|
||||||
suspend_state ||
|
|
||||||
#if LED_DISABLE_TIMEOUT > 0
|
#if LED_DISABLE_TIMEOUT > 0
|
||||||
(led_anykey_timer > (uint32_t)LED_DISABLE_TIMEOUT) ||
|
(led_anykey_timer > (uint32_t)LED_DISABLE_TIMEOUT) ||
|
||||||
#endif // LED_DISABLE_TIMEOUT > 0
|
#endif // LED_DISABLE_TIMEOUT > 0
|
||||||
|
@ -409,8 +409,7 @@ void rgb_matrix_task(void) {
|
|||||||
|
|
||||||
// Ideally we would also stop sending zeros to the LED driver PWM buffers
|
// Ideally we would also stop sending zeros to the LED driver PWM buffers
|
||||||
// while suspended and just do a software shutdown. This is a cheap hack for now.
|
// while suspended and just do a software shutdown. This is a cheap hack for now.
|
||||||
bool suspend_backlight =
|
bool suspend_backlight = suspend_state ||
|
||||||
suspend_state ||
|
|
||||||
#if RGB_DISABLE_TIMEOUT > 0
|
#if RGB_DISABLE_TIMEOUT > 0
|
||||||
(rgb_anykey_timer > (uint32_t)RGB_DISABLE_TIMEOUT) ||
|
(rgb_anykey_timer > (uint32_t)RGB_DISABLE_TIMEOUT) ||
|
||||||
#endif // RGB_DISABLE_TIMEOUT > 0
|
#endif // RGB_DISABLE_TIMEOUT > 0
|
||||||
|
@ -218,9 +218,9 @@ void suspend_wakeup_init(void) {
|
|||||||
#if defined(RGBLIGHT_SLEEP) && defined(RGBLIGHT_ENABLE)
|
#if defined(RGBLIGHT_SLEEP) && defined(RGBLIGHT_ENABLE)
|
||||||
rgblight_wakeup();
|
rgblight_wakeup();
|
||||||
#endif
|
#endif
|
||||||
# if defined(RGB_MATRIX_ENABLE)
|
#if defined(RGB_MATRIX_ENABLE)
|
||||||
rgb_matrix_set_suspend_state(false);
|
rgb_matrix_set_suspend_state(false);
|
||||||
# endif
|
#endif
|
||||||
|
|
||||||
suspend_wakeup_init_kb();
|
suspend_wakeup_init_kb();
|
||||||
}
|
}
|
||||||
|
@ -83,9 +83,9 @@ void suspend_power_down(void) {
|
|||||||
#if defined(RGBLIGHT_SLEEP) && defined(RGBLIGHT_ENABLE)
|
#if defined(RGBLIGHT_SLEEP) && defined(RGBLIGHT_ENABLE)
|
||||||
rgblight_suspend();
|
rgblight_suspend();
|
||||||
#endif
|
#endif
|
||||||
# if defined(RGB_MATRIX_ENABLE)
|
#if defined(RGB_MATRIX_ENABLE)
|
||||||
rgb_matrix_set_suspend_state(true);
|
rgb_matrix_set_suspend_state(true);
|
||||||
# endif
|
#endif
|
||||||
#ifdef AUDIO_ENABLE
|
#ifdef AUDIO_ENABLE
|
||||||
stop_all_notes();
|
stop_all_notes();
|
||||||
#endif /* AUDIO_ENABLE */
|
#endif /* AUDIO_ENABLE */
|
||||||
@ -154,8 +154,8 @@ void suspend_wakeup_init(void) {
|
|||||||
#if defined(RGBLIGHT_SLEEP) && defined(RGBLIGHT_ENABLE)
|
#if defined(RGBLIGHT_SLEEP) && defined(RGBLIGHT_ENABLE)
|
||||||
rgblight_wakeup();
|
rgblight_wakeup();
|
||||||
#endif
|
#endif
|
||||||
# if defined(RGB_MATRIX_ENABLE)
|
#if defined(RGB_MATRIX_ENABLE)
|
||||||
rgb_matrix_set_suspend_state(false);
|
rgb_matrix_set_suspend_state(false);
|
||||||
# endif
|
#endif
|
||||||
suspend_wakeup_init_kb();
|
suspend_wakeup_init_kb();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user