mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Fix compilation
This commit is contained in:
parent
d814f11a05
commit
ee4251baef
@ -499,6 +499,8 @@ static byte counter_one_herz;
|
||||
static bool GPS_enabled = false;
|
||||
static bool new_radio_frame;
|
||||
|
||||
AP_Relay relay;
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Top-level logic
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -712,14 +712,14 @@ test_relay(uint8_t argc, const Menu::arg *argv)
|
||||
|
||||
while(1){
|
||||
Serial.printf_P(PSTR("Relay on\n"));
|
||||
relay_on();
|
||||
relay.on();
|
||||
delay(3000);
|
||||
if(Serial.available() > 0){
|
||||
return (0);
|
||||
}
|
||||
|
||||
Serial.printf_P(PSTR("Relay off\n"));
|
||||
relay_off();
|
||||
relay.off();
|
||||
delay(3000);
|
||||
if(Serial.available() > 0){
|
||||
return (0);
|
||||
|
@ -279,14 +279,14 @@ test_relay(uint8_t argc, const Menu::arg *argv)
|
||||
|
||||
while(1){
|
||||
Serial.printf_P(PSTR("Relay on\n"));
|
||||
relay_on();
|
||||
relay.on();
|
||||
delay(3000);
|
||||
if(Serial.available() > 0){
|
||||
return (0);
|
||||
}
|
||||
|
||||
Serial.printf_P(PSTR("Relay off\n"));
|
||||
relay_off();
|
||||
relay.off();
|
||||
delay(3000);
|
||||
if(Serial.available() > 0){
|
||||
return (0);
|
||||
|
Loading…
Reference in New Issue
Block a user