From cca9760271c261d57d397c7927f2d6491f44d0d2 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell <tridge@samba.org> Date: Mon, 22 Oct 2012 18:59:51 +1100 Subject: [PATCH] ACM: save another 20 bytes --- ArduCopter/commands_logic.pde | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ArduCopter/commands_logic.pde b/ArduCopter/commands_logic.pde index 184d4ff0d..556ffa1e6 100644 --- a/ArduCopter/commands_logic.pde +++ b/ArduCopter/commands_logic.pde @@ -477,9 +477,7 @@ static bool verify_nav_wp() if(wp_verify_byte >= 7) { //if(wp_verify_byte & NAV_LOCATION){ - char message[30]; - sprintf(message,"Reached Command #%i",command_nav_index); - gcs_send_text(SEVERITY_LOW,message); + gcs_send_text_fmt(PSTR("Reached Command #%i"),command_nav_index); wp_verify_byte = 0; copter_leds_nav_blink = 15; // Cause the CopterLEDs to blink three times to indicate waypoint reached return true; -- GitLab