diff --git a/device.h b/device.h index 4ee9726..51f7094 100644 --- a/device.h +++ b/device.h @@ -23,7 +23,7 @@ // Serial settings #define BAUD 9600 #define SERIAL_DEBUG false -#define TX_MAXWAIT 2UL +#define TX_MAXWAIT 5UL // Port settings #if TARGET_CPU == m328p diff --git a/protocol/LLP.h b/protocol/LLP.h index e799036..6744ab2 100644 --- a/protocol/LLP.h +++ b/protocol/LLP.h @@ -9,7 +9,7 @@ #define LLP_INTERLEAVE_SIZE 12 #define LLP_MIN_FRAME_LENGTH LLP_INTERLEAVE_SIZE -#define LLP_MAX_FRAME_LENGTH 67 * LLP_INTERLEAVE_SIZE +#define LLP_MAX_FRAME_LENGTH 68 * LLP_INTERLEAVE_SIZE #define LLP_HEADER_SIZE 10 #define LLP_CHECKSUM_SIZE 2 #define LLP_MAX_DATA_SIZE LLP_MAX_FRAME_LENGTH - LLP_HEADER_SIZE - LLP_CHECKSUM_SIZE