Fix parameter increase/decrease directions

This commit is contained in:
Jasper Blanckenburg 2023-08-01 19:46:04 +02:00
parent 1eefffcbd6
commit 5121dcb74f
2 changed files with 6 additions and 6 deletions

View File

@ -78,19 +78,19 @@ void VehicleConfigViewBase::handleKeyEvent(uint8_t key)
} }
if(106 == key) if(107 == key)
{ {
//DecreaseParam //DecreaseParam
//When hardware button 106 clicked call virtual function //When hardware button 107 clicked call virtual function
//Call decParam //Call decParam
decParam(); decParam();
} }
if(107 == key) if(106 == key)
{ {
//IncreaseParam //IncreaseParam
//When hardware button 107 clicked call virtual function //When hardware button 106 clicked call virtual function
//Call incParam //Call incParam
incParam(); incParam();

View File

@ -1185,7 +1185,7 @@
"InteractionName": "DecreaseParam", "InteractionName": "DecreaseParam",
"Trigger": { "Trigger": {
"Type": "TriggerPhysicalButtonClicked", "Type": "TriggerPhysicalButtonClicked",
"ButtonKey": 106 "ButtonKey": 107
}, },
"Action": { "Action": {
"Type": "ActionCustom", "Type": "ActionCustom",
@ -1196,7 +1196,7 @@
"InteractionName": "IncreaseParam", "InteractionName": "IncreaseParam",
"Trigger": { "Trigger": {
"Type": "TriggerPhysicalButtonClicked", "Type": "TriggerPhysicalButtonClicked",
"ButtonKey": 107 "ButtonKey": 106
}, },
"Action": { "Action": {
"Type": "ActionCustom", "Type": "ActionCustom",