From 806f1bae560326c7764e0cb3c2ff9fd3f63a8bc0 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Mon, 23 Jun 2014 19:33:42 +0200 Subject: [PATCH] Frame buf length define fixed --- Modem/main.c | 4 ++-- buildrev.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Modem/main.c b/Modem/main.c index 69e9a68..804db60 100644 --- a/Modem/main.c +++ b/Modem/main.c @@ -52,7 +52,7 @@ static size_t serialLen = 0; // Counter for counting length o static bool sertx = false; // Flag signifying whether it's time to send data // received on the serial port. -#define SER_BUFFER_FULL (serialLen < MP1_MAX_DATA_SIZE-1) +#define SER_BUFFER_FULL (serialLen < CONFIG_AX25_FRAME_BUF_LEN-1) @@ -132,7 +132,7 @@ int main(void) // If we have not yet surpassed the maximum frame length // and the byte is not a "transmit" (newline) character, // we should store it for transmission. - if ((serialLen < MP1_MAX_DATA_SIZE) && (sbyte != 10)) { + if ((serialLen < CONFIG_AX25_FRAME_BUF_LEN) && (sbyte != 10)) { // Put the read byte into the buffer; serialBuffer[serialLen] = sbyte; // Increment the read length counter diff --git a/buildrev.h b/buildrev.h index a43e9d1..222825e 100644 --- a/buildrev.h +++ b/buildrev.h @@ -1,2 +1,2 @@ -#define VERS_BUILD 2174 +#define VERS_BUILD 2178 #define VERS_HOST "shard"