Frame buf length define fixed

This commit is contained in:
Mark Qvist 2014-06-23 19:33:42 +02:00
parent f0b809634b
commit 806f1bae56
2 changed files with 3 additions and 3 deletions

View File

@ -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 static bool sertx = false; // Flag signifying whether it's time to send data
// received on the serial port. // 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 // If we have not yet surpassed the maximum frame length
// and the byte is not a "transmit" (newline) character, // and the byte is not a "transmit" (newline) character,
// we should store it for transmission. // 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; // Put the read byte into the buffer;
serialBuffer[serialLen] = sbyte; serialBuffer[serialLen] = sbyte;
// Increment the read length counter // Increment the read length counter

View File

@ -1,2 +1,2 @@
#define VERS_BUILD 2174 #define VERS_BUILD 2178
#define VERS_HOST "shard" #define VERS_HOST "shard"