1
0
Fork 0

[MERGE] Consolidate EE Hands with MASTER_LEFT/RIGHT and simplify behavior (24162)

This commit is contained in:
Drashna Jael're 2024-07-20 17:20:01 -07:00
parent 9e7acf446f
commit 70b56b2074
Signed by: drashna
GPG key ID: DBA1FD3A860D1B11
143 changed files with 159 additions and 1220 deletions

View file

@ -62,6 +62,8 @@ void eeconfig_init_quantum(void) {
eeprom_update_byte(EECONFIG_STENOMODE, 0);
eeprom_write_qword(EECONFIG_RGB_MATRIX, 0);
eeprom_update_dword(EECONFIG_HAPTIC, 0);
eeprom_update_byte(EECONFIG_HANDEDNESS, EEHANDS_UNSET);
#if defined(HAPTIC_ENABLE)
haptic_reset();
#endif
@ -269,15 +271,15 @@ void eeconfig_update_haptic(uint32_t val) {
*
* FIXME: needs doc
*/
bool eeconfig_read_handedness(void) {
return !!eeprom_read_byte(EECONFIG_HANDEDNESS);
eehands_t eeconfig_read_handedness(void) {
return eeprom_read_byte(EECONFIG_HANDEDNESS);
}
/** \brief eeconfig update split handedness
*
* FIXME: needs doc
*/
void eeconfig_update_handedness(bool val) {
eeprom_update_byte(EECONFIG_HANDEDNESS, !!val);
void eeconfig_update_handedness(eehands_t val) {
eeprom_update_byte(EECONFIG_HANDEDNESS, val);
}
#if (EECONFIG_KB_DATA_SIZE) > 0