Skip to content

Commit

Permalink
Change rgblight_get_mode & rgb_matrix_get_mode's return type to uint8…
Browse files Browse the repository at this point in the history
…_t. (qmk#4747)

* Change rgblight_get_mode's return type to uint8_t.

Since rgblight_get_mode() is just returning rgblight_config_t.mode,
it should match rgblight_config_t.mode's type: uint8_t.

* Update rgb_matrix_get_mode to return uint8_t.
  • Loading branch information
newtonapple authored and mechmerlin committed Dec 31, 2018
1 parent 0c0e208 commit b768859
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion keyboards/mxss/rgblight.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ void rgblight_step_reverse(void) {
rgblight_mode(mode);
}

uint32_t rgblight_get_mode(void) {
uint8_t rgblight_get_mode(void) {
if (!rgblight_config.enable) {
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion quantum/rgb_matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,7 @@ void rgb_matrix_mode_noeeprom(uint8_t mode) {
rgb_matrix_config.mode = mode;
}

uint32_t rgb_matrix_get_mode(void) {
uint8_t rgb_matrix_get_mode(void) {
return rgb_matrix_config.mode;
}

Expand Down
2 changes: 1 addition & 1 deletion quantum/rgb_matrix.h
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ void rgb_matrix_increase_speed(void);
void rgb_matrix_decrease_speed(void);
void rgb_matrix_mode(uint8_t mode);
void rgb_matrix_mode_noeeprom(uint8_t mode);
uint32_t rgb_matrix_get_mode(void);
uint8_t rgb_matrix_get_mode(void);

#ifndef RGBLIGHT_ENABLE
#define rgblight_toggle() rgb_matrix_toggle()
Expand Down
2 changes: 1 addition & 1 deletion quantum/rgblight.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ void rgblight_step_reverse(void) {
rgblight_step_reverse_helper(true);
}

uint32_t rgblight_get_mode(void) {
uint8_t rgblight_get_mode(void) {
if (!rgblight_config.enable) {
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion quantum/rgblight.h
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ void rgblight_enable(void);
void rgblight_disable(void);
void rgblight_step(void);
void rgblight_step_reverse(void);
uint32_t rgblight_get_mode(void);
uint8_t rgblight_get_mode(void);
void rgblight_mode(uint8_t mode);
void rgblight_set(void);
void rgblight_update_dword(uint32_t dword);
Expand Down

0 comments on commit b768859

Please sign in to comment.