Fix compilation

This commit is contained in:
Amilcar Lucas 2011-10-02 14:52:02 +02:00
parent d814f11a05
commit ee4251baef
3 changed files with 6 additions and 4 deletions

View File

@ -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
////////////////////////////////////////////////////////////////////////////////

View File

@ -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);

View File

@ -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);