Rename Keymap_Switch() to SwitchKeymap()
This commit is contained in:
@@ -13,7 +13,7 @@ uint8_t AllKeymapsCount;
|
||||
uint8_t DefaultKeymapIndex;
|
||||
uint8_t CurrentKeymapIndex = 0;
|
||||
|
||||
void Keymaps_Switch(uint8_t index)
|
||||
void SwitchKeymap(uint8_t index)
|
||||
{
|
||||
CurrentKeymapIndex = index;
|
||||
ValidatedUserConfigBuffer.offset = AllKeymaps[index].offset;
|
||||
|
||||
@@ -29,6 +29,6 @@
|
||||
|
||||
// Functions:
|
||||
|
||||
void Keymaps_Switch(uint8_t index);
|
||||
void SwitchKeymap(uint8_t index);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -140,11 +140,11 @@ void ApplyConfig(void)
|
||||
if (memcmp(oldKeymapAbbreviation, AllKeymaps[i].abbreviation, oldKeymapAbbreviationLen)) {
|
||||
continue;
|
||||
}
|
||||
Keymaps_Switch(i);
|
||||
SwitchKeymap(i);
|
||||
return;
|
||||
}
|
||||
|
||||
Keymaps_Switch(DefaultKeymapIndex);
|
||||
SwitchKeymap(DefaultKeymapIndex);
|
||||
}
|
||||
|
||||
void setLedPwm(void)
|
||||
|
||||
@@ -132,7 +132,7 @@ void UpdateActiveUsbReports(void)
|
||||
processMouseAction(action);
|
||||
break;
|
||||
case KeyActionType_SwitchKeymap:
|
||||
Keymaps_Switch(action.switchKeymap.keymapId);
|
||||
SwitchKeymap(action.switchKeymap.keymapId);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user