]> git.droids-corp.org - protos/xbee-avr.git/commitdiff
logs: do not forget to register logs
authorOlivier Matz <zer0@droids-corp.org>
Tue, 8 Apr 2014 20:38:11 +0000 (22:38 +0200)
committerOlivier Matz <zer0@droids-corp.org>
Tue, 6 May 2014 19:12:31 +0000 (21:12 +0200)
main.c

diff --git a/main.c b/main.c
index a0839d2c2dd59b611e13a8f700f3287e7e6cf538..4529d6e0631f6933554ecab57a9bb06bedc36d9c 100644 (file)
--- a/main.c
+++ b/main.c
@@ -159,6 +159,14 @@ int main(void)
        callout_mgr_init(&xbeeboard.intr_cm, get_time_ms);
 
        cmdline_init();
+       /* LOGS */
+       error_register_emerg(mylog);
+       error_register_error(mylog);
+       error_register_warning(mylog);
+       error_register_notice(mylog);
+       error_register_debug(mylog);
+
+
        spi_servo_init();
        beep_init();