Check the value of macroIndex

This commit is contained in:
Eric Tang
2017-08-09 11:50:02 -07:00
parent abc0b994a4
commit c342f75031
7 changed files with 15 additions and 5 deletions
+2 -1
View File
@@ -4,6 +4,7 @@
#include "led_display.h"
#include "config_parser/parse_keymap.h"
#include "config_parser/config_globals.h"
#include "macros.h"
// TODO: Restore Ctrl and Super keys and Mod+N.
@@ -16,7 +17,7 @@ void Keymaps_Switch(uint8_t index)
{
CurrentKeymapIndex = index;
UserConfigBuffer.offset = AllKeymaps[index].offset;
ParseKeymap(&UserConfigBuffer, index, AllKeymapsCount);
ParseKeymap(&UserConfigBuffer, index, AllKeymapsCount, AllMacrosCount);
LedDisplay_SetText(AllKeymaps[index].abbreviationLen, AllKeymaps[index].abbreviation);
}