Fix functions with empty params (#19647)
* Fix functions with empty params * Found a bunch more
This commit is contained in:
		
							parent
							
								
									0f77ae6a20
								
							
						
					
					
						commit
						cf935d97ae
					
				
					 170 changed files with 276 additions and 276 deletions
				
			
		| 
						 | 
				
			
			@ -296,7 +296,7 @@ bool rgb_matrix_indicators_user(void) {
 | 
			
		|||
    return false;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static void start_effects() {
 | 
			
		||||
static void start_effects(void) {
 | 
			
		||||
    effect_started_time = sync_timer_read();
 | 
			
		||||
    if (!rgb_matrix_is_enabled()) {
 | 
			
		||||
        /* Turn it ON, signal the cause (EFFECTS) */
 | 
			
		||||
| 
						 | 
				
			
			@ -319,7 +319,7 @@ static void start_effects() {
 | 
			
		|||
//  87, led 07                                                                                                                                                                      88, led 18
 | 
			
		||||
//  91, led 08                                                                                                                                                                      92, led 19
 | 
			
		||||
 | 
			
		||||
static void set_rgb_caps_leds() {
 | 
			
		||||
static void set_rgb_caps_leds(void) {
 | 
			
		||||
    rgb_matrix_set_color(0, 0xFF, 0x0, 0x0); // ESC
 | 
			
		||||
    rgb_matrix_set_color(6, 0xFF, 0x0, 0x0); // F1
 | 
			
		||||
    rgb_matrix_set_color(12, 0xFF, 0x0, 0x0); // F2
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -81,7 +81,7 @@ bool encoder_update_user(uint8_t index, bool clockwise) {
 | 
			
		|||
 | 
			
		||||
static void set_rgb_caps_leds(void);
 | 
			
		||||
 | 
			
		||||
static void set_rgb_caps_leds() {
 | 
			
		||||
static void set_rgb_caps_leds(void) {
 | 
			
		||||
    rgb_matrix_set_color(73, 0xFF, 0x77, 0x77);  // Left side LED 3
 | 
			
		||||
    rgb_matrix_set_color(74, 0xFF, 0x77, 0x77);  // Right side LED 3
 | 
			
		||||
    rgb_matrix_set_color(76, 0xFF, 0x77, 0x77);  // Left side LED 4
 | 
			
		||||
| 
						 | 
				
			
			@ -97,14 +97,14 @@ static void set_rgb_nlck_notset_leds(void);
 | 
			
		|||
 | 
			
		||||
static void set_rgb_wlck_leds(void);
 | 
			
		||||
 | 
			
		||||
static void set_rgb_nlck_notset_leds() {
 | 
			
		||||
static void set_rgb_nlck_notset_leds(void) {
 | 
			
		||||
    rgb_matrix_set_color(67, 0x77, 0x77, 0xFF);  // Left side LED 1
 | 
			
		||||
    rgb_matrix_set_color(68, 0x77, 0x77, 0xFF);  // Right side LED 1
 | 
			
		||||
    rgb_matrix_set_color(70, 0x77, 0x77, 0xFF);  // Left side LED 2
 | 
			
		||||
    rgb_matrix_set_color(71, 0x77, 0x77, 0xFF);  // Right side LED 2
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static void set_rgb_wlck_leds() {
 | 
			
		||||
static void set_rgb_wlck_leds(void) {
 | 
			
		||||
    rgb_matrix_set_color(87, 0x77, 0xFF, 0x77);  // Left side LED 7
 | 
			
		||||
    rgb_matrix_set_color(88, 0x77, 0xFF, 0x77);  // Right side LED 7
 | 
			
		||||
    rgb_matrix_set_color(91, 0x77, 0xFF, 0x77);  // Left side LED 8
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -220,7 +220,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
bool rgb_matrix_indicators_user() {
 | 
			
		||||
bool rgb_matrix_indicators_user(void) {
 | 
			
		||||
    #if RGB_CONFIRMATION_BLINKING_TIME > 0
 | 
			
		||||
    if (effect_started_time > 0) {
 | 
			
		||||
        /* Render blinking EFFECTS */
 | 
			
		||||
| 
						 | 
				
			
			@ -262,7 +262,7 @@ bool rgb_matrix_indicators_user() {
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
#if RGB_CONFIRMATION_BLINKING_TIME > 0
 | 
			
		||||
static void start_effects() {
 | 
			
		||||
static void start_effects(void) {
 | 
			
		||||
    effect_started_time = sync_timer_read();
 | 
			
		||||
    if (!rgb_matrix_is_enabled()) {
 | 
			
		||||
        /* Turn it ON, signal the cause (EFFECTS) */
 | 
			
		||||
| 
						 | 
				
			
			@ -286,7 +286,7 @@ static void start_effects() {
 | 
			
		|||
//  87, led 07                                                                                                                                                                      88, led 18
 | 
			
		||||
//  91, led 08                                                                                                                                                                      92, led 19
 | 
			
		||||
 | 
			
		||||
static void set_rgb_caps_leds() {
 | 
			
		||||
static void set_rgb_caps_leds(void) {
 | 
			
		||||
    rgb_matrix_set_color(67, 0xFF, 0x0, 0x0); // Left side LED 1
 | 
			
		||||
    rgb_matrix_set_color(68, 0xFF, 0x0, 0x0); // Right side LED 1
 | 
			
		||||
    rgb_matrix_set_color(70, 0xFF, 0x0, 0x0); // Left side LED 2
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -73,14 +73,14 @@ bool encoder_update_user(uint8_t index, bool clockwise) {
 | 
			
		|||
 | 
			
		||||
static void set_rgb_side_leds(void);
 | 
			
		||||
 | 
			
		||||
static void set_rgb_side_leds() {
 | 
			
		||||
static void set_rgb_side_leds(void) {
 | 
			
		||||
    rgb_matrix_set_color(67, RGB_WHITE); // Left side LED 1
 | 
			
		||||
    rgb_matrix_set_color(68, RGB_WHITE); // Right side LED 1
 | 
			
		||||
    rgb_matrix_set_color(91, RGB_WHITE); // Left side LED 8
 | 
			
		||||
    rgb_matrix_set_color(92, RGB_WHITE); // Right side LED 8
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
bool rgb_matrix_indicators_user() {
 | 
			
		||||
bool rgb_matrix_indicators_user(void) {
 | 
			
		||||
    rgb_matrix_set_color_all(0x0, 0x0, 0x0);
 | 
			
		||||
    if (IS_HOST_LED_ON(USB_LED_CAPS_LOCK)) {
 | 
			
		||||
        rgb_matrix_set_color(3, RGB_WHITE); // CAPS
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -414,7 +414,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
 | 
			
		|||
  }
 | 
			
		||||
 | 
			
		||||
  #if RGB_CONFIRMATION_BLINKING_TIME > 0
 | 
			
		||||
  static void start_effects() {
 | 
			
		||||
  static void start_effects(void) {
 | 
			
		||||
    effect_started_time = sync_timer_read();
 | 
			
		||||
    if (!rgb_matrix_is_enabled()) {
 | 
			
		||||
      /* Turn it ON, signal the cause (EFFECTS) */
 | 
			
		||||
| 
						 | 
				
			
			@ -427,7 +427,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
 | 
			
		|||
  }
 | 
			
		||||
  #endif // RGB_CONFIRMATION_BLINKING_TIME > 0
 | 
			
		||||
 | 
			
		||||
  static void set_rgb_caps_leds() {
 | 
			
		||||
  static void set_rgb_caps_leds(void) {
 | 
			
		||||
    rgb_matrix_set_color(67, 0xFF, 0x0, 0x0); // Left side LED 1
 | 
			
		||||
    rgb_matrix_set_color(68, 0xFF, 0x0, 0x0); // Right side LED 1
 | 
			
		||||
    rgb_matrix_set_color(70, 0xFF, 0x0, 0x0); // Left side LED 2
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -36,9 +36,9 @@ const encoder_callback encoder_mapping[][2] = {
 | 
			
		|||
 | 
			
		||||
// clang-format on
 | 
			
		||||
 | 
			
		||||
void volume_up() { tap_code(KC_VOLU); }
 | 
			
		||||
void volume_up(void) { tap_code(KC_VOLU); }
 | 
			
		||||
 | 
			
		||||
void volume_down() { tap_code(KC_VOLD); }
 | 
			
		||||
void volume_down(void) { tap_code(KC_VOLD); }
 | 
			
		||||
 | 
			
		||||
bool encoder_update_user(uint8_t index, bool clockwise) {
 | 
			
		||||
    dprintf("current encoder state is: %d\n", state);
 | 
			
		||||
| 
						 | 
				
			
			@ -65,7 +65,7 @@ void handle_rgb_key(bool pressed) {
 | 
			
		|||
 | 
			
		||||
static KeyPressState *rgb_state;
 | 
			
		||||
 | 
			
		||||
void keyboard_post_init_encoder() {
 | 
			
		||||
void keyboard_post_init_encoder(void) {
 | 
			
		||||
    rgb_state = NewKeyPressState(handle_rgb_key);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -116,4 +116,4 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
 | 
			
		|||
           process_record_fun(keycode, record);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void keyboard_post_init_user() { keyboard_post_init_encoder(); }
 | 
			
		||||
void keyboard_post_init_user(void) { keyboard_post_init_encoder(); }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -58,12 +58,12 @@ void set_layer_rgb(uint8_t led_min, uint8_t led_max, int layer) {
 | 
			
		|||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void rgb_matrix_layers_enable() {
 | 
			
		||||
void rgb_matrix_layers_enable(void) {
 | 
			
		||||
    dprintf("ledmaps are enabled\n");
 | 
			
		||||
    enabled = true;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void rgb_matrix_layers_disable() {
 | 
			
		||||
void rgb_matrix_layers_disable(void) {
 | 
			
		||||
    dprintf("ledmaps are disabled\n");
 | 
			
		||||
    enabled = false;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -15,7 +15,7 @@
 | 
			
		|||
 */
 | 
			
		||||
#include "utils.h"
 | 
			
		||||
 | 
			
		||||
void store_rgb_state_to_eeprom() {
 | 
			
		||||
void store_rgb_state_to_eeprom(void) {
 | 
			
		||||
    uint8_t mode  = rgb_matrix_get_mode();
 | 
			
		||||
    uint8_t speed = rgb_matrix_get_speed();
 | 
			
		||||
    HSV     color = rgb_matrix_get_hsv();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -247,7 +247,7 @@ bool rgb_matrix_indicators_user(void) {
 | 
			
		|||
//  87, led 07                                                                                                                                                                      88, led 18
 | 
			
		||||
//  91, led 08                                                                                                                                                                      92, led 19
 | 
			
		||||
 | 
			
		||||
static void set_rgb_caps_leds_on() {
 | 
			
		||||
static void set_rgb_caps_leds_on(void) {
 | 
			
		||||
        rgb_matrix_set_color(0, 255, 0, 0);       //Escape Key
 | 
			
		||||
        rgb_matrix_set_color(3, 255, 0, 0);       //capslock key
 | 
			
		||||
        rgb_matrix_set_color(5, 255, 0, 0);       //Left CTRL key
 | 
			
		||||
| 
						 | 
				
			
			@ -269,7 +269,7 @@ static void set_rgb_caps_leds_on() {
 | 
			
		|||
        rgb_matrix_set_color(92, 255, 255, 255);  //Right LED 19
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static void set_rgb_caps_leds_off() {
 | 
			
		||||
static void set_rgb_caps_leds_off(void) {
 | 
			
		||||
        rgb_matrix_set_color(0,  0, 0, 0); //Escape Key
 | 
			
		||||
        rgb_matrix_set_color(3,  0, 0, 0); //capslock key
 | 
			
		||||
        rgb_matrix_set_color(5,  0, 0, 0); //Left CTRL key
 | 
			
		||||
| 
						 | 
				
			
			@ -291,11 +291,11 @@ static void set_rgb_caps_leds_off() {
 | 
			
		|||
        rgb_matrix_set_color(92, 0, 0, 0); //Right LED 19
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static void set_rgb_scroll_leds_on() {
 | 
			
		||||
static void set_rgb_scroll_leds_on(void) {
 | 
			
		||||
        rgb_matrix_set_color(72, 255, 255, 255); // Under Rotary (HOME)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static void set_rgb_scroll_leds_off() {
 | 
			
		||||
static void set_rgb_scroll_leds_off(void) {
 | 
			
		||||
        rgb_matrix_set_color(72, 0, 0, 0); // Under Rotary (HOME)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -62,7 +62,7 @@ const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
 | 
			
		|||
	static void set_rgb_caps_leds_off(void);
 | 
			
		||||
	static void set_rgb_scroll_leds_off(void);
 | 
			
		||||
 | 
			
		||||
	static void set_rgb_caps_leds_on() {
 | 
			
		||||
	static void set_rgb_caps_leds_on(void) {
 | 
			
		||||
		// Set alpha and capslock to red
 | 
			
		||||
 | 
			
		||||
		rgb_matrix_set_color( 3, 255, 0, 0);	// Caps
 | 
			
		||||
| 
						 | 
				
			
			@ -97,7 +97,7 @@ const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
 | 
			
		|||
		rgb_matrix_set_color(43, 255, 0, 0);	// M
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	static void set_rgb_caps_leds_off() {
 | 
			
		||||
	static void set_rgb_caps_leds_off(void) {
 | 
			
		||||
		// Set alpha and capslock to black
 | 
			
		||||
 | 
			
		||||
		rgb_matrix_set_color( 3, 0, 0, 0);	// Caps
 | 
			
		||||
| 
						 | 
				
			
			@ -132,11 +132,11 @@ const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
 | 
			
		|||
		rgb_matrix_set_color(43, 0, 0, 0);	// M
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	static void set_rgb_scroll_leds_on() {
 | 
			
		||||
	static void set_rgb_scroll_leds_on(void) {
 | 
			
		||||
		rgb_matrix_set_color(72, 255, 255, 255); // Under Rotary (HOME)
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	static void set_rgb_scroll_leds_off() {
 | 
			
		||||
	static void set_rgb_scroll_leds_off(void) {
 | 
			
		||||
		rgb_matrix_set_color(72, 0, 0, 0); // Under Rotary (HOME)
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue