fixed binding key in bind mode

This commit is contained in:
Pawel Spychalski (DzikuVx)
2018-05-28 20:46:52 +02:00
parent c5575c9af2
commit 71ad7498a5
7 changed files with 70 additions and 60 deletions

View File

@@ -24,7 +24,12 @@ void TxOled::loop() {
case TX_PAGE_BIND:
if (button1.getState() == TACTILE_STATE_LONG_PRESS) {
platformNode.isBindMode = !platformNode.isBindMode;
if (!platformNode.isBindMode) {
platformNode.enterBindMode();
} else {
platformNode.leaveBindMode();
}
update = true;
}
break;