summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@drashna.net>2023-05-08 15:39:49 -0700
committerGitHub <noreply@github.com>2023-05-08 23:39:49 +0100
commit54d172830cf9f526b0d5ddce963c470d70e8fb86 (patch)
treea78adeb3a760c3b8fa36e39b93cf5469268ea46c
parentd6c3202f156b5ca0f3a668445a588a08b8f7a9b9 (diff)
[Keyboard] Fix mxss rgblight.c compilation issues (#20804)
-rw-r--r--keyboards/mxss/rgblight.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/keyboards/mxss/rgblight.c b/keyboards/mxss/rgblight.c
index b2df351c55..94f6b1dfe8 100644
--- a/keyboards/mxss/rgblight.c
+++ b/keyboards/mxss/rgblight.c
@@ -175,18 +175,19 @@ void rgblight_check_config(void) {
}
}
-uint32_t eeconfig_read_rgblight(void) {
+uint64_t eeconfig_read_rgblight(void) {
#ifdef EEPROM_ENABLE
- return eeprom_read_dword(EECONFIG_RGBLIGHT);
+ return (uint64_t)((eeprom_read_dword(EECONFIG_RGBLIGHT)) | ((uint64_t)eeprom_read_byte(EECONFIG_RGBLIGHT_EXTENDED) << 32));
#else
return 0;
#endif
}
-void eeconfig_update_rgblight(uint32_t val) {
+void eeconfig_update_rgblight(uint64_t val) {
#ifdef EEPROM_ENABLE
rgblight_check_config();
- eeprom_update_dword(EECONFIG_RGBLIGHT, val);
+ eeprom_update_dword(EECONFIG_RGBLIGHT, val & 0xFFFFFFFF);
+ eeprom_update_byte(EECONFIG_RGBLIGHT_EXTENDED, (val >> 32) & 0xFF);
#endif
}