Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/OSD.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ Here are the OSD Elements provided by INAV.
| 157 | OSD_CUSTOM_ELEMENT_7 | 8.0.0 | |
| 158 | OSD_CUSTOM_ELEMENT_8 | 8.0.0 | |
| 159 | OSD_LQ_DOWNLINK | 8.0.0 | |
| 160 | OSD_RX_POWER_DOWNLINK | 8.0.0 | |
| 160 | OSD_RX_POWER_DOWNLINK | 8.0.0 | The element will be hidden unless the RC link reports the transmit power of the receiver. CRSF does not send this value, it is available on MSP and MAVLink RC links. |
| 161 | OSD_RX_BAND | 8.0.0 | |
| 162 | OSD_RX_MODE | 8.0.0 | |
| 163 | OSD_COURSE_TO_FENCE | 8.0.0 | |
Expand Down
7 changes: 7 additions & 0 deletions src/main/io/osd.c
Original file line number Diff line number Diff line change
Expand Up @@ -2845,6 +2845,13 @@ static bool osdDrawSingleElement(uint8_t item)

case OSD_RX_POWER_DOWNLINK:
{
// Only the MSP and MAVLink RC links report the transmit power of the receiver, the CRSF
// link statistics frame has no such field. Hide the element instead of showing a permanent 0.
if (rxLinkStatistics.downlinkTXPower == 0) {
displayWrite(osdDisplayPort, elemPosX, elemPosY, " ");
return false;
}

if (!failsafeIsReceivingRxData())
tfp_sprintf(buff, "%s%c%c", " ", SYM_MW, SYM_AH_DECORATION_DOWN);
else
Expand Down