From c56ab0cc598567a22bb05e5ed0286514a8ec501d Mon Sep 17 00:00:00 2001 From: Geoff Sim Date: Tue, 14 Dec 2021 18:17:26 +0000 Subject: [PATCH] Fix syntax error in dji code changes. --- src/main/io/osd_dji_hd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/io/osd_dji_hd.c b/src/main/io/osd_dji_hd.c index b8ffb444c4..1c6fbf0f68 100644 --- a/src/main/io/osd_dji_hd.c +++ b/src/main/io/osd_dji_hd.c @@ -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