]> git.droids-corp.org - protos/xbee-avr.git/commitdiff
display prompt after executing commands
authorOlivier Matz <zer0@droids-corp.org>
Tue, 12 Nov 2013 22:36:48 +0000 (23:36 +0100)
committerOlivier Matz <zer0@droids-corp.org>
Sun, 9 Mar 2014 21:13:02 +0000 (22:13 +0100)
main.c

diff --git a/main.c b/main.c
index 20d368b120764d8127447994ff16ba43b407c833..2d280a4b7c40c07cfdbe0791815e69e8511bbba3 100644 (file)
--- a/main.c
+++ b/main.c
@@ -646,9 +646,6 @@ int main(void)
        spi_servo_init();
        beep_init();
 
-       printf_P(PSTR("\r\n"));
-       rdline_newline(&xbeeboard.rdl, xbeeboard.prompt);
-
        callout_manager_init(&cm, get_time_ms);
        //callout_reset(&cm, &t1, 500, PERIODICAL, do_led_blink, NULL);
 
@@ -672,6 +669,10 @@ int main(void)
        sei();
 
        eeprom_load_config();
+
+       printf_P(PSTR("\r\n"));
+       rdline_newline(&xbeeboard.rdl, xbeeboard.prompt);
+
        xbee_mainloop();
        return 0;
 }