From 3f5af2b26bc46080cf30ff10ab848b4777ddb6ee Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Mon, 7 Jan 2019 12:09:41 +0100 Subject: [PATCH] Frame size increased to ethernet-compliant MTU --- config.h | 4 ---- protocol/AX25.h | 9 +++------ protocol/KISS.c | 2 +- 3 files changed, 4 insertions(+), 11 deletions(-) delete mode 100755 config.h diff --git a/config.h b/config.h deleted file mode 100755 index 86203cf..0000000 --- a/config.h +++ /dev/null @@ -1,4 +0,0 @@ -#ifndef CONFIG_H -#define CONFIG_H - -#endif \ No newline at end of file diff --git a/protocol/AX25.h b/protocol/AX25.h index 7915e93..40862cc 100755 --- a/protocol/AX25.h +++ b/protocol/AX25.h @@ -6,12 +6,9 @@ #include "device.h" #include "hardware/AFSK.h" -#define AX25_MIN_FRAME_LEN 18 -#ifndef CUSTOM_FRAME_SIZE - #define AX25_MAX_FRAME_LEN 792 -#else - #define AX25_MAX_FRAME_LEN CUSTOM_FRAME_SIZE -#endif +#define AX25_MIN_FRAME_LEN 1 +#define AX25_MAX_FRAME_LEN 1532 + #define AX25_CRC_CORRECT 0xF0B8 diff --git a/protocol/KISS.c b/protocol/KISS.c index eaf1adc..9ddc860 100755 --- a/protocol/KISS.c +++ b/protocol/KISS.c @@ -110,7 +110,7 @@ void kiss_serialCallback(uint8_t sbyte) { } else if (IN_FRAME && frame_len < AX25_MAX_FRAME_LEN) { // Have a look at the command byte first if (frame_len == 0 && command == CMD_UNKNOWN) { - // MicroModem supports only one HDLC port, so we + // OpenModem supports only one HDLC port, so we // strip off the port nibble of the command byte sbyte = sbyte & 0x0F; command = sbyte;