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

Fix syntax error in dji code changes.

This commit is contained in:
Geoff Sim 2021-12-14 18:17:26 +00:00
parent 8108397022
commit c56ab0cc59

View file

@ -361,7 +361,7 @@ static void djiSerializeOSDConfigReply(sbuf_t *dst)
// However INAV supports co-ords of 0-63 and has 3 layouts, while BF has co-ords 0-31 and visibility profiles.
// Re-encode for co-ords of 0-31 and map the layout to all three BF profiles.
uint16_t itemPos = osdLayoutsConfig()->item_pos[0][inavOSDIdx];
uint16_t itemPosSD = OSD_POS_SD(OSD_X(itemPosHD), OSD_Y(itemPosHD));
uint16_t itemPosSD = OSD_POS_SD(OSD_X(itemPos), OSD_Y(itemPos));
// Workarounds for certain OSD element positions
// INAV calculates these dynamically, while DJI expects the config to have defined coordinates