Adjustes UART Message Length to 512
This commit is contained in:
parent
d3e44125a2
commit
59dbd7b035
@ -4,7 +4,7 @@
|
|||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#define MAX_MESSAGE_PAYLOAD_LENGTH 128
|
#define MAX_MESSAGE_PAYLOAD_LENGTH 512
|
||||||
#define MAX_TOTAL_CONTENT_LENGTH (MAX_MESSAGE_PAYLOAD_LENGTH + 1)
|
#define MAX_TOTAL_CONTENT_LENGTH (MAX_MESSAGE_PAYLOAD_LENGTH + 1)
|
||||||
|
|
||||||
enum ParserState {
|
enum ParserState {
|
||||||
@ -33,7 +33,7 @@ struct MessageReceive {
|
|||||||
enum ParserError error;
|
enum ParserError error;
|
||||||
uint8_t messageid;
|
uint8_t messageid;
|
||||||
uint8_t message[MAX_MESSAGE_PAYLOAD_LENGTH];
|
uint8_t message[MAX_MESSAGE_PAYLOAD_LENGTH];
|
||||||
uint8_t index;
|
uint16_t index;
|
||||||
uint8_t checksum;
|
uint8_t checksum;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user