X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fnet%2Fafsk_test.c;h=cd434084f83da2caf36817761260dece8e0b5a9e;hb=e47f203a5648786cd782d921880a77a395570059;hp=9aa5083056187f2a336f1c8d857f7aa4f7b6d4a1;hpb=74c7bb68260444eee2831f758b1a9296d6d4ac4e;p=bertos.git diff --git a/bertos/net/afsk_test.c b/bertos/net/afsk_test.c index 9aa50830..cd434084 100644 --- a/bertos/net/afsk_test.c +++ b/bertos/net/afsk_test.c @@ -51,6 +51,7 @@ #include #include +#include #include @@ -63,11 +64,13 @@ uint32_t data_size; uint32_t data_written; Afsk afsk_fd; AX25Ctx ax25; +KFileDebug dbg; int msg_cnt; -static void message_hook(UNUSED_ARG(struct AX25Msg *, msg)) +static void message_hook(struct AX25Msg *msg) { msg_cnt++; + ax25_print(&dbg.fd, msg); } static FILE *afsk_fileOpen(const char *name) @@ -126,6 +129,7 @@ static FILE *afsk_fileOpen(const char *name) int afsk_testSetup(void) { kdbg_init(); + kfiledebug_init(&dbg); fp_adc = afsk_fileOpen("test/afsk_test.au"); #if CPU_AVR #warning TODO: open the file?