Frame size increased to ethernet-compliant MTU

This commit is contained in:
Mark Qvist 2019-01-07 12:09:41 +01:00
parent 79aa4620ba
commit 3f5af2b26b
3 changed files with 4 additions and 11 deletions

View File

@ -1,4 +0,0 @@
#ifndef CONFIG_H
#define CONFIG_H
#endif

View File

@ -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

View File

@ -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;