From de4d505f627162ce31b940f0af372f034f93ba84 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 5 Oct 2013 22:03:42 +1000 Subject: [PATCH] HAL_AVR: fixed examples build --- .../examples/ArduCopterLibs/ArduCopterLibs.pde | 14 -------------- .../examples/ArduPlaneLibs/ArduPlaneLibs.pde | 15 --------------- libraries/AP_HAL_AVR/examples/Console/Console.pde | 15 --------------- 3 files changed, 44 deletions(-) diff --git a/libraries/AP_HAL_AVR/examples/ArduCopterLibs/ArduCopterLibs.pde b/libraries/AP_HAL_AVR/examples/ArduCopterLibs/ArduCopterLibs.pde index e1007d3d89..3af5bccfb5 100644 --- a/libraries/AP_HAL_AVR/examples/ArduCopterLibs/ArduCopterLibs.pde +++ b/libraries/AP_HAL_AVR/examples/ArduCopterLibs/ArduCopterLibs.pde @@ -119,20 +119,6 @@ void setup(void) stream_loopback(hal.console, 10000); hal.console->println("loopback done"); - hal.console->println("opening backend:"); - - hal.console->backend_open(); - - const char hello[] = "hello world\r\n"; - hal.console->backend_write((const uint8_t*)hello, strlen(hello)); - - hal.console->println("loopback for 10sec:"); - stream_console_loopback(hal.console, hal.console, 10000); - hal.console->println("loopback done"); - - hal.console->backend_close(); - hal.console->println("closed backend."); - hal.console->println("done."); for(;;); diff --git a/libraries/AP_HAL_AVR/examples/ArduPlaneLibs/ArduPlaneLibs.pde b/libraries/AP_HAL_AVR/examples/ArduPlaneLibs/ArduPlaneLibs.pde index 39cd3a4ce8..51175b49fe 100644 --- a/libraries/AP_HAL_AVR/examples/ArduPlaneLibs/ArduPlaneLibs.pde +++ b/libraries/AP_HAL_AVR/examples/ArduPlaneLibs/ArduPlaneLibs.pde @@ -115,21 +115,6 @@ void setup(void) stream_loopback(hal.console, 10000); hal.console->println("loopback done"); - hal.console->println("opening backend:"); - - hal.console->backend_open(); - - const char hello[] = "hello world\r\n"; - hal.console->backend_write((const uint8_t*)hello, strlen(hello)); - - hal.console->println("loopback for 10sec:"); - stream_console_loopback(hal.console, hal.console, 10000); - hal.console->println("loopback done"); - - hal.console->backend_close(); - hal.console->println("closed backend."); - - hal.console->println("done."); for(;;); } diff --git a/libraries/AP_HAL_AVR/examples/Console/Console.pde b/libraries/AP_HAL_AVR/examples/Console/Console.pde index 5a7158face..3dabbc49de 100644 --- a/libraries/AP_HAL_AVR/examples/Console/Console.pde +++ b/libraries/AP_HAL_AVR/examples/Console/Console.pde @@ -94,21 +94,6 @@ void setup(void) stream_loopback(hal.console, 10000); hal.console->println("loopback done"); - hal.console->println("opening backend:"); - - hal.console->backend_open(); - - const char hello[] = "hello world\r\n"; - hal.console->backend_write((const uint8_t*)hello, strlen(hello)); - - hal.console->println("loopback for 10sec:"); - stream_console_loopback(hal.console, hal.console, 10000); - hal.console->println("loopback done"); - - hal.console->backend_close(); - hal.console->println("closed backend."); - - hal.console->println("done."); for(;;); }