[Companion] Fixes #4288

This commit is contained in:
Bertrand Songis
2017-01-26 07:22:58 +01:00
parent 8c9f574f92
commit 764b18d883
2 changed files with 2 additions and 2 deletions
+1 -1
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;