diff options
| author | David Dai <newtonapple@gmail.com> | 2018-12-31 08:42:58 -0800 |
|---|---|---|
| committer | MechMerlin <30334081+mechmerlin@users.noreply.github.com> | 2018-12-31 08:42:58 -0800 |
| commit | b7688590b8a252f7497e3f78d569b98ae62ab177 (patch) | |
| tree | 5b6eca2321798a1116ab251da0d1029d01eb07b2 /quantum/rgb_matrix.h | |
| parent | 0c0e208a36300660f3d568d52ae3155becf92893 (diff) | |
| download | qmk_firmware-b7688590b8a252f7497e3f78d569b98ae62ab177.tar.gz qmk_firmware-b7688590b8a252f7497e3f78d569b98ae62ab177.zip | |
Change rgblight_get_mode & rgb_matrix_get_mode's return type to uint8_t. (#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.
Diffstat (limited to 'quantum/rgb_matrix.h')
| -rw-r--r-- | quantum/rgb_matrix.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/quantum/rgb_matrix.h b/quantum/rgb_matrix.h index 0cfeb4e06..e43532d11 100644 --- a/quantum/rgb_matrix.h +++ b/quantum/rgb_matrix.h | |||
| @@ -180,7 +180,7 @@ void rgb_matrix_increase_speed(void); | |||
| 180 | void rgb_matrix_decrease_speed(void); | 180 | void rgb_matrix_decrease_speed(void); |
| 181 | void rgb_matrix_mode(uint8_t mode); | 181 | void rgb_matrix_mode(uint8_t mode); |
| 182 | void rgb_matrix_mode_noeeprom(uint8_t mode); | 182 | void rgb_matrix_mode_noeeprom(uint8_t mode); |
| 183 | uint32_t rgb_matrix_get_mode(void); | 183 | uint8_t rgb_matrix_get_mode(void); |
| 184 | 184 | ||
| 185 | #ifndef RGBLIGHT_ENABLE | 185 | #ifndef RGBLIGHT_ENABLE |
| 186 | #define rgblight_toggle() rgb_matrix_toggle() | 186 | #define rgblight_toggle() rgb_matrix_toggle() |
