mirror of
https://github.com/markqvist/OpenModem.git
synced 2025-05-02 14:36:20 -04:00
Various fixes
This commit is contained in:
parent
ef36e43e96
commit
a4ce3fca41
5 changed files with 15 additions and 7 deletions
|
@ -61,6 +61,9 @@ void ax25_poll(AX25Ctx *ctx) {
|
|||
if (!ctx->escape && c == HDLC_FLAG) {
|
||||
if (ctx->frame_len >= AX25_MIN_FRAME_LEN) {
|
||||
if (ctx->crc_in == AX25_CRC_CORRECT) {
|
||||
#if OPEN_SQUELCH == true
|
||||
LED_RX_ON();
|
||||
#endif
|
||||
ax25_decode(ctx);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
#define AX25_CTRL_UI 0x03
|
||||
#define AX25_PID_NOLAYER3 0xF0
|
||||
|
||||
struct AX25Ctx; // Forward declaration
|
||||
struct AX25Ctx; // Forward declarations
|
||||
struct AX25Msg;
|
||||
|
||||
#if SERIAL_PROTOCOL == PROTOCOL_KISS
|
||||
|
|
|
@ -206,8 +206,10 @@ void ss_messageCallback(struct AX25Msg *msg) {
|
|||
}
|
||||
|
||||
if (PRINT_DATA) {
|
||||
if (PRINT_INFO) printf_P(PSTR("DATA: "));
|
||||
printf_P(PSTR("%.*s"), msg->len, msg->info);
|
||||
if (PRINT_INFO) printf_P(PSTR("DATA: "), msg->len);
|
||||
for (int i = 0; i < msg->len; i++) {
|
||||
putchar(msg->info[i]);
|
||||
}
|
||||
}
|
||||
printf_P(PSTR("\r\n"));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue