Skip to content

Commit 31c55f0

Browse files
committed
fixed crash: MSP displayport UART is assigned, but OSD feature s disabled
1 parent fb31952 commit 31c55f0

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)