mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-18 06:38:29 -04:00
AP_Menu: Do not compare delegate to NULL
Use the simpler "if (delegate_name)" since it allows simpler implementation in the class, i.e. the bool operator rather than having to compare to another object.
This commit is contained in:
parent
acdcdc35fa
commit
ff398dbf0c
@ -181,7 +181,7 @@ Menu::run(void)
|
|||||||
for (;;) {
|
for (;;) {
|
||||||
|
|
||||||
// run the pre-prompt function, if one is defined
|
// run the pre-prompt function, if one is defined
|
||||||
if (NULL != _ppfunc) {
|
if (_ppfunc) {
|
||||||
if (!_ppfunc())
|
if (!_ppfunc())
|
||||||
return;
|
return;
|
||||||
_display_prompt();
|
_display_prompt();
|
||||||
|
Loading…
Reference in New Issue
Block a user