diff --git a/ArduPlane/commands_logic.pde b/ArduPlane/commands_logic.pde index c779ac1032..0f59ff0113 100644 --- a/ArduPlane/commands_logic.pde +++ b/ArduPlane/commands_logic.pde @@ -617,10 +617,13 @@ static void do_set_servo() static void do_set_relay() { if (next_nonnav_command.p1 == 1) { + gcs_send_text_fmt(PSTR("Relay on")); relay.on(); } else if (next_nonnav_command.p1 == 0) { + gcs_send_text_fmt(PSTR("Relay off")); relay.off(); }else{ + gcs_send_text_fmt(PSTR("Relay toggle")); relay.toggle(); } } diff --git a/ArduPlane/events.pde b/ArduPlane/events.pde index 7cf2dc9540..c3632c133f 100644 --- a/ArduPlane/events.pde +++ b/ArduPlane/events.pde @@ -127,6 +127,7 @@ static void update_events(void) break; case EVENT_TYPE_RELAY: + gcs_send_text_fmt(PSTR("Relay toggle")); relay.toggle(); break; }