mirror of https://github.com/ArduPilot/ardupilot
AP_Notify: small change to Display health logic
This commit is contained in:
parent
847c68bf72
commit
07c08c09a3
|
@ -379,13 +379,11 @@ bool Display::init(void)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_driver != nullptr) {
|
if (!_driver || !_driver->hw_init()) {
|
||||||
_healthy = _driver->hw_init();
|
_healthy = false;
|
||||||
}
|
|
||||||
|
|
||||||
if (!_healthy) {
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
_healthy = true;
|
||||||
|
|
||||||
// update all on display
|
// update all on display
|
||||||
update_all();
|
update_all();
|
||||||
|
|
Loading…
Reference in New Issue