Replace magic number for M-Bus frame data length with define

This commit is contained in:
Stefan Wahren 2013-10-05 10:38:07 +02:00
parent 3e24215e51
commit d5f06ec910

View File

@ -70,6 +70,8 @@ extern "C" {
//
//
#define MBUS_FRAME_DATA_LENGTH 252
typedef struct _mbus_frame {
unsigned char start1;
@ -83,7 +85,7 @@ typedef struct _mbus_frame {
unsigned char checksum;
unsigned char stop;
unsigned char data[252];
unsigned char data[MBUS_FRAME_DATA_LENGTH];
size_t data_size;
int type;