diff --git a/libraries/AP_Menu/AP_Menu.cpp b/libraries/AP_Menu/AP_Menu.cpp index 447aa07e27..6085c62438 100644 --- a/libraries/AP_Menu/AP_Menu.cpp +++ b/libraries/AP_Menu/AP_Menu.cpp @@ -181,7 +181,7 @@ Menu::run(void) for (;;) { // run the pre-prompt function, if one is defined - if (NULL != _ppfunc) { + if (_ppfunc) { if (!_ppfunc()) return; _display_prompt();