Rename Keymap_Switch() to SwitchKeymap()

This commit is contained in:
László Monda
2017-11-03 18:59:58 +01:00
parent e169627cde
commit 4072a0ea33
4 changed files with 5 additions and 5 deletions

View File

@@ -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;

View File

@@ -29,6 +29,6 @@
// Functions:
void Keymaps_Switch(uint8_t index);
void SwitchKeymap(uint8_t index);
#endif

View File

@@ -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)

View File

@@ -132,7 +132,7 @@ void UpdateActiveUsbReports(void)
processMouseAction(action);
break;
case KeyActionType_SwitchKeymap:
Keymaps_Switch(action.switchKeymap.keymapId);
SwitchKeymap(action.switchKeymap.keymapId);
break;
}
}