mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 02:18:29 -04:00
Rover: allow sonar test with sonar disabled
useful for initial config
This commit is contained in:
parent
cbdeb20dad
commit
3aeb836bc0
@ -546,8 +546,7 @@ static int8_t
|
|||||||
test_sonar(uint8_t argc, const Menu::arg *argv)
|
test_sonar(uint8_t argc, const Menu::arg *argv)
|
||||||
{
|
{
|
||||||
if (!g.sonar_enabled) {
|
if (!g.sonar_enabled) {
|
||||||
cliSerial->println_P(PSTR("Sonar is not enabled"));
|
cliSerial->println_P(PSTR("WARNING: Sonar is not enabled"));
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
print_hit_enter();
|
print_hit_enter();
|
||||||
|
Loading…
Reference in New Issue
Block a user