1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-24 00:35:18 +03:00

[Horus] Enable SWR warning

This commit is contained in:
Andre Bernet 2016-04-01 11:25:22 +04:00
parent 3d4f3611b0
commit 75977b6b6d

View file

@ -181,10 +181,12 @@ void telemetryWakeup()
audioEvent(AU_SENSOR_LOST);
}
#if defined(PCBTARANIS)
#if defined(PCBTARANIS) || defined(PCBHORUS)
if ((g_model.moduleData[INTERNAL_MODULE].rfProtocol != RF_PROTO_OFF || g_model.moduleData[EXTERNAL_MODULE].type == MODULE_TYPE_XJT) && FRSKY_BAD_ANTENNA()) {
AUDIO_SWR_RED();
POPUP_WARNING(STR_ANTENNAPROBLEM);
POPUP_WARNING(STR_WARNING);
const char * w = STR_ANTENNAPROBLEM;
SET_WARNING_INFO(w, strlen(w), 0);
SCHEDULE_NEXT_ALARMS_CHECK(10/*seconds*/);
}
#endif