1
0
Fork 0
mirror of https://github.com/EdgeTX/edgetx.git synced 2025-07-23 16:25:12 +03:00

[Companion] Fixes #4288

This commit is contained in:
Bertrand Songis 2017-01-26 07:22:49 +01:00
parent 8c9f574f92
commit 764b18d883
2 changed files with 2 additions and 2 deletions

View file

@ -1028,7 +1028,7 @@ bool GeneralSettings::switchPositionAllowedTaranis(int index) const
if (index == 0)
return true;
div_t qr = div(index-1, 3);
div_t qr = div(abs(index)-1, 3);
if (index < 0 && switchConfig[qr.quot] != Board::SWITCH_3POS)
return false;