update rgblight.c

pull/5020/head
mtei 6 years ago
parent f74e2bc5b8
commit 47b99fe0a4

@ -161,7 +161,6 @@ void rgblight_check_config(void) {
#define RGBLIGHT_SPLIT_SET_CHANGE_TIMER_ENABLE rgblight_status.change_flags |= RGBLIGHT_STATUS_CHANGE_TIMER
/* for split keyboard slave side */
/* Call from keyboard individual code. */
void rgblight_update_sync(rgblight_config_t *config, rgblight_status_t *status, bool write_to_eeprom) {
if( status->change_flags & RGBLIGHT_STATUS_CHANGE_MODE ) {
if (config->enable) {

@ -177,6 +177,9 @@ typedef struct _rgblight_status_t {
#define RGBLIGHT_STATUS_CHANGE_HSVS (1<<1)
#define RGBLIGHT_STATUS_CHANGE_TIMER (1<<2)
extern rgblight_config_t rgblight_config;
extern rgblight_status_t rgblight_status;
/* for split keyboard slave side */
void rgblight_update_sync(rgblight_config_t *config, rgblight_status_t *status, bool write_to_eeprom);
#endif

Loading…
Cancel
Save