// This is a callback we register with the protocol, // so we can process each packet as they are decoded. // Right now it just prints the packet to the serial port. static void message_callback(struct AX25Msg *msg) { if (SERIAL_PROTOCOL == PROTOCOL_SIMPLE_SERIAL) { ss_messageCallback(msg, &ser); } if (SERIAL_PROTOCOL == PROTOCOL_KISS) { // Not implemented yet } }
static void ax25_callback(struct AX25Msg *msg) { ss_messageCallback(msg); }