[Companion] Another fix for #4224

This commit is contained in:
Bertrand Songis
2017-01-18 11:29:05 +01:00
parent 0e8fba1fe6
commit badea8e6a8
@@ -871,7 +871,7 @@ class FlightModeField: public TransformedField {
virtual void beforeExport()
{
for (int i=0; i<CPN_MAX_STICKS+MAX_AUX_TRIMS(board); i++) {
if (IS_TARANIS(board) && version >= 216) {
if (IS_HORUS_OR_TARANIS(board) && version >= 216) {
if (phase.trimMode[i] < 0)
trimMode[i] = TRIM_MODE_NONE;
else
@@ -899,7 +899,7 @@ class FlightModeField: public TransformedField {
virtual void afterImport()
{
for (int i=0; i<CPN_MAX_STICKS+MAX_AUX_TRIMS(board); i++) {
if (IS_TARANIS(board) && version >= 216) {
if (IS_HORUS_OR_TARANIS(board) && version >= 216) {
if (trimMode[i] == TRIM_MODE_NONE) {
phase.trimMode[i] = -1;
}