1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-25 17:25:18 +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;

View file

@ -311,7 +311,7 @@ void taskUpdateAux(timeUs_t currentTimeUs)
updateFixedWingLevelTrim(currentTimeUs);
}
#else
updateFixedWingLevelTrim(currentTimeUs);
updateFixedWingLevelTrim(currentTimeUs);
#endif
}

View file

@ -516,7 +516,7 @@ void accUpdate(void)
for (int axis = 0; axis < XYZ_AXIS_COUNT; axis++) {
accADC[axis] = acc.dev.ADCRaw[axis];
DEBUG_SET(DEBUG_ACC, axis, accADC[axis]);
DEBUG_SET(DEBUG_ACC, axis, accADC[axis]);
}
performAcclerationCalibration();