From 0e0b3ba4528b7d1accf3ddc46694c753d0b082f5 Mon Sep 17 00:00:00 2001 From: nerdCopter <56646290+nerdCopter@users.noreply.github.com> Date: Sat, 8 May 2021 14:17:57 -0500 Subject: [PATCH] resolve #555; DJIwarning only if OSD defined * fixes for FC without OSD --- src/main/interface/msp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/interface/msp.c b/src/main/interface/msp.c index 5ce45e373d..fd759de9ed 100644 --- a/src/main/interface/msp.c +++ b/src/main/interface/msp.c @@ -767,7 +767,7 @@ bool mspProcessOutCommand(uint8_t cmdMSP, sbuf_t *dst) { break; case MSP_NAME: { // Show warning for DJI OSD instead of pilot name - // works if osd warnings enabled, osd_warn_dji is on and usb is not connected + // works if osd warnings enabled, osd_warn_dji is on #ifdef USE_OSD if (osdWarnGetState(OSD_WARNING_DJI)) { sbufWriteString(dst, djiWarningBuffer);