Replace magic number for M-Bus frame data length with define
This commit is contained in:
		| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Stefan Wahren
					Stefan Wahren