Merge pull request #215 from kareltucek/type_fix

fix wrong type
This commit is contained in:
László Monda
2019-04-01 02:19:45 +02:00
committed by GitHub

View File

@@ -218,7 +218,7 @@ void deleteSystemScancode(uint8_t scancode)
} }
} }
void addScancode(uint16_t scancode, macro_sub_action_t type) void addScancode(uint16_t scancode, keystroke_type_t type)
{ {
switch (type) { switch (type) {
case KeystrokeType_Basic: case KeystrokeType_Basic:
@@ -233,7 +233,7 @@ void addScancode(uint16_t scancode, macro_sub_action_t type)
} }
} }
void deleteScancode(uint16_t scancode, macro_sub_action_t type) void deleteScancode(uint16_t scancode, keystroke_type_t type)
{ {
switch (type) { switch (type) {
case KeystrokeType_Basic: case KeystrokeType_Basic:
@@ -296,7 +296,7 @@ bool processMouseButtonAction(void)
{ {
static bool pressStarted; static bool pressStarted;
switch (currentMacroAction.key.action) { switch (currentMacroAction.mouseButton.action) {
case MacroSubAction_Tap: case MacroSubAction_Tap:
if (!pressStarted) { if (!pressStarted) {
pressStarted = true; pressStarted = true;