diff --git a/companion/src/companion.qrc b/companion/src/companion.qrc
index 32ace6a12..f91782c50 100644
--- a/companion/src/companion.qrc
+++ b/companion/src/companion.qrc
@@ -137,6 +137,7 @@
images/simulator/X9E/right_enter.png
images/simulator/X9E/top.png
images/simulator/X9D2019/bottom.png
+ images/simulator/X9D2019/bottom_scrnshot.png
images/simulator/X9D2019/left.png
images/simulator/X9D2019/left_exit.png
images/simulator/X9D2019/left_menu.png
diff --git a/companion/src/modeledit/setup.cpp b/companion/src/modeledit/setup.cpp
index 271dcd8b6..c996bc374 100644
--- a/companion/src/modeledit/setup.cpp
+++ b/companion/src/modeledit/setup.cpp
@@ -381,6 +381,7 @@ int ModulePanel::getMaxChannelCount()
case PULSES_PXX_XJT_X16:
case PULSES_CROSSFIRE:
case PULSES_SBUS:
+ case PULSES_PPM:
return 16;
case PULSES_XJT_LITE_LR12:
case PULSES_PXX_XJT_LR12:
@@ -388,7 +389,6 @@ int ModulePanel::getMaxChannelCount()
case PULSES_PXX_DJT:
case PULSES_XJT_LITE_D8:
case PULSES_PXX_XJT_D8:
- case PULSES_PPM:
return 8;
case PULSES_LP45:
case PULSES_DSM2:
diff --git a/companion/src/simulation/simulateduiwidgetX9D2019.cpp b/companion/src/simulation/simulateduiwidgetX9D2019.cpp
index 828a946b8..414ba891b 100644
--- a/companion/src/simulation/simulateduiwidgetX9D2019.cpp
+++ b/companion/src/simulation/simulateduiwidgetX9D2019.cpp
@@ -51,7 +51,7 @@ SimulatedUIWidgetX9D2019::SimulatedUIWidgetX9D2019(SimulatorInterface *simulator
m_mouseMidClickAction = new RadioUiAction(2, QList() << Qt::Key_Enter << Qt::Key_Return, SIMU_STR_HLP_KEYS_ACTIVATE, SIMU_STR_HLP_ACT_ROT_DN);
addRadioWidget(ui->rightbuttons->addArea(QRect(40, 30, 80, 130), "X9D2019/right_enter.png", m_mouseMidClickAction));
- addRadioWidget(ui->leftbuttons->addArea(QRect(10, 170, 30, 30), "X9D2019/left_scrnshot.png", m_screenshotAction));
+ addRadioWidget(ui->bottom->addArea(QRect(10, 5, 30, 30), "X9D2019/bottom_scrnshot.png", m_screenshotAction));
m_backlightColors << QColor(47, 123, 227); // Taranis Blue
m_backlightColors << QColor(166,247,159);
diff --git a/companion/src/simulation/simulateduiwidgetX9D2019.ui b/companion/src/simulation/simulateduiwidgetX9D2019.ui
index 4333f50ca..44a146b75 100644
--- a/companion/src/simulation/simulateduiwidgetX9D2019.ui
+++ b/companion/src/simulation/simulateduiwidgetX9D2019.ui
@@ -127,7 +127,7 @@
-
-
+
0
diff --git a/radio/src/gui/128x64/model_telemetry.cpp b/radio/src/gui/128x64/model_telemetry.cpp
index 016972a80..96f5401a3 100644
--- a/radio/src/gui/128x64/model_telemetry.cpp
+++ b/radio/src/gui/128x64/model_telemetry.cpp
@@ -214,6 +214,7 @@ void menuModelTelemetry(event_t event)
pushMenu(menuModelSensor);
}
else {
+ allowNewSensors = 0;
POPUP_WARNING(STR_TELEMETRYFULL);
}
}
diff --git a/radio/src/gui/212x64/model_telemetry.cpp b/radio/src/gui/212x64/model_telemetry.cpp
index 019107a52..ea1aa7dcc 100644
--- a/radio/src/gui/212x64/model_telemetry.cpp
+++ b/radio/src/gui/212x64/model_telemetry.cpp
@@ -205,6 +205,7 @@ void menuModelTelemetry(event_t event)
pushMenu(menuModelSensor);
}
else {
+ allowNewSensors = 0;
POPUP_WARNING(STR_TELEMETRYFULL);
}
}
diff --git a/radio/src/gui/colorlcd/zone.h b/radio/src/gui/colorlcd/zone.h
index 196749522..2f3243d40 100644
--- a/radio/src/gui/colorlcd/zone.h
+++ b/radio/src/gui/colorlcd/zone.h
@@ -27,7 +27,7 @@ union ZoneOptionValue
{
uint32_t unsignedValue;
int32_t signedValue;
- bool boolValue;
+ uint32_t boolValue;
char stringValue[LEN_ZONE_OPTION_STRING];
};
diff --git a/radio/src/simu.cpp b/radio/src/simu.cpp
index 3d273406d..9c6127fbd 100644
--- a/radio/src/simu.cpp
+++ b/radio/src/simu.cpp
@@ -366,20 +366,20 @@ void OpenTxSim::updateKeysAndSwitches(bool start)
#define SWITCH_KEY(key, swtch, states) \
static bool state##key = 0; \
- static int8_t state_##swtch = 2; \
- static int8_t inc_##swtch = 1; \
+ static int8_t state_##swtch = -1; \
+ static int8_t inc_##swtch = 4-states; \
if (getApp()->getKeyState(KEY_##key)) { \
if (!state##key) { \
state_##swtch = (state_##swtch+inc_##swtch); \
- if (state_##swtch == 1+states) inc_##swtch = -1; \
- else if (state_##swtch == 2) inc_##swtch = 1; \
+ if (state_##swtch == -1+((states-1)*inc_##swtch)) inc_##swtch = -4+states; \
+ else if (state_##swtch == -1) inc_##swtch = 4-states; \
state##key = true; \
} \
} \
else { \
state##key = false; \
} \
- simuSetSwitch(swtch, state_##swtch-states)
+ simuSetSwitch(swtch, state_##swtch) \
#if defined(PCBSKY9X)
SWITCH_KEY(1, 0, 3);