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:
parent
6d1b0cec40
commit
119542a218
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue