1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-21 15:25:29 +03:00

[MAVLINK] Limit status text to USE_OSD boards

This commit is contained in:
Felipe Machado 2020-08-28 18:23:02 +01:00
parent 55ab364c9a
commit c5ae7e8c11

View file

@ -692,6 +692,8 @@ void mavlinkSendBatteryTemperatureStatusText(void)
mavlinkSendMessage(); mavlinkSendMessage();
// FIXME - Status text is limited to boards with USE_OSD
#ifdef USE_OSD
char buff[MAVLINK_MSG_STATUSTEXT_FIELD_TEXT_LEN] = {""}; char buff[MAVLINK_MSG_STATUSTEXT_FIELD_TEXT_LEN] = {""};
textAttributes_t elemAttr = osdGetSystemMessage(buff, sizeof(buff), false); textAttributes_t elemAttr = osdGetSystemMessage(buff, sizeof(buff), false);
if (buff[0] != '\0') { if (buff[0] != '\0') {
@ -708,6 +710,7 @@ void mavlinkSendBatteryTemperatureStatusText(void)
mavlinkSendMessage(); mavlinkSendMessage();
} }
#endif
} }