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

reverted unrelated changes

This commit is contained in:
Roman Lut 2022-07-30 07:10:39 +03:00
parent 42a8ce15c1
commit 03313ea2d8
3 changed files with 6 additions and 5 deletions

View file

@ -3204,10 +3204,11 @@ void mspWriteSimulatorOSD(sbuf_t *dst)
static uint8_t osdPos_y = 0;
static uint8_t osdPos_x = 0;
displayPort_t *osdDisplayPort = osdGetDisplayPort();
if (isOSDTypeSupportedBySimulator())
{
displayPort_t *osdDisplayPort = osdGetDisplayPort();
sbufWriteU8(dst, osdPos_y | (osdDisplayPort->rows == 16 ? 128: 0));
sbufWriteU8(dst, osdPos_x);
@ -3221,7 +3222,7 @@ void mspWriteSimulatorOSD(sbuf_t *dst)
int processedRows = 16;
while (bytesCount < 80) //whole replay should be less 155 bytes at worst.
while (bytesCount < 80) //whole response should be less 155 bytes at worst.
{
bool blink1;
uint16_t lastChar;