1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 08:15:30 +03:00

Avoid use of calls to the display when display not supported by the

target.
This commit is contained in:
Dominic Clifton 2014-12-13 12:08:13 +00:00
parent 6d1b0cec40
commit 119542a218

View file

@ -990,9 +990,11 @@ gpsEnablePassthroughResult_e gpsEnablePassthrough(void)
serialWrite(gpsPort, serialRead(gpsPassthroughPort));
LED1_OFF;
}
#ifdef DISPLAY
if (feature(FEATURE_DISPLAY)) {
updateDisplay();
}
#endif
}
return GPS_PASSTHROUGH_ENABLED;