Skip to content

Commit 1fa4ac2

Browse files
authored
Merge pull request #10792 from RomanLut/submit-msp-vtx-crash
fixed crash: Firmware crash when OSD is disabled but MSP Display UART is allocated
2 parents be52fe6 + 31c55f0 commit 1fa4ac2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/fc/fc_init.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,9 @@ void init(void)
677677
#endif
678678

679679
#ifdef USE_VTX_MSP
680-
vtxMspInit();
680+
if (feature(FEATURE_OSD)) {
681+
vtxMspInit();
682+
}
681683
#endif
682684

683685
#endif // USE_VTX_CONTROL

0 commit comments

Comments
 (0)