Browse Source

AP_Notify: small change to Display health logic

mission-4.1.18
Randy Mackay 8 years ago committed by Lucas De Marchi
parent
commit
07c08c09a3
  1. 8
      libraries/AP_Notify/Display.cpp

8
libraries/AP_Notify/Display.cpp

@ -379,13 +379,11 @@ bool Display::init(void) @@ -379,13 +379,11 @@ bool Display::init(void)
break;
}
if (_driver != nullptr) {
_healthy = _driver->hw_init();
}
if (!_healthy) {
if (!_driver || !_driver->hw_init()) {
_healthy = false;
return false;
}
_healthy = true;
// update all on display
update_all();

Loading…
Cancel
Save