[Companion] Fixes #4288
This commit is contained in:
@@ -1028,7 +1028,7 @@ bool GeneralSettings::switchPositionAllowedTaranis(int index) const
|
|||||||
if (index == 0)
|
if (index == 0)
|
||||||
return true;
|
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)
|
if (index < 0 && switchConfig[qr.quot] != Board::SWITCH_3POS)
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user