Frame size increased to ethernet-compliant MTU
This commit is contained in:
parent
79aa4620ba
commit
3f5af2b26b
|
@ -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
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue