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:
parent
55ab364c9a
commit
c5ae7e8c11
1 changed files with 3 additions and 0 deletions
|
@ -692,6 +692,8 @@ void mavlinkSendBatteryTemperatureStatusText(void)
|
|||
mavlinkSendMessage();
|
||||
|
||||
|
||||
// FIXME - Status text is limited to boards with USE_OSD
|
||||
#ifdef USE_OSD
|
||||
char buff[MAVLINK_MSG_STATUSTEXT_FIELD_TEXT_LEN] = {""};
|
||||
textAttributes_t elemAttr = osdGetSystemMessage(buff, sizeof(buff), false);
|
||||
if (buff[0] != '\0') {
|
||||
|
@ -708,6 +710,7 @@ void mavlinkSendBatteryTemperatureStatusText(void)
|
|||
|
||||
mavlinkSendMessage();
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue