Serial stuff

This commit is contained in:
Mark Qvist 2014-12-19 00:15:56 +01:00
parent 35c504703c
commit ef36e43e96
2 changed files with 5 additions and 6 deletions

10
main.c
View File

@ -39,14 +39,14 @@ AX25Ctx AX25;
void init(void) { void init(void) {
sei(); sei();
serial_init(&serial);
stdout = &serial.uart0;
stdin = &serial.uart0;
AFSK_init(&modem); AFSK_init(&modem);
ax25_init(&AX25, &modem.fd, ax25_callback); ax25_init(&AX25, &modem.fd, ax25_callback);
serial_init(&serial);
stdout = &serial.uart0;
stdin = &serial.uart0;
#if SERIAL_PROTOCOL == PROTOCOL_KISS #if SERIAL_PROTOCOL == PROTOCOL_KISS
kiss_init(&AX25, &modem, &serial); kiss_init(&AX25, &modem, &serial);
#endif #endif

View File

@ -98,7 +98,6 @@ void ss_init(AX25Ctx *ax25) {
ss_loadSettings(); ss_loadSettings();
SS_INIT = true; SS_INIT = true;
if (VERBOSE) { if (VERBOSE) {
delay_ms(300);
printf_P(PSTR("---------------\n")); printf_P(PSTR("---------------\n"));
printf_P(PSTR("MicroAPRS v1.0b\n")); printf_P(PSTR("MicroAPRS v1.0b\n"));
printf_P(PSTR("unsigned.io/microaprs\n")); printf_P(PSTR("unsigned.io/microaprs\n"));