Skip to content
4 changes: 4 additions & 0 deletions src/modbus-private.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ MODBUS_BEGIN_DECLS
#define _RESPONSE_TIMEOUT 500000
#define _BYTE_TIMEOUT 500000

#define SUB_REQUEST_LENGHT 0x07
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beside the typo, I would prefer: _SUB_REQ_HDR_LENGTH

#define SUB_REQUEST_REF_TYPE \
0x06 // Reference-Type for General Reference Read + Write

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This project uses usually C style comments, not C++ styles ones like this one.

typedef enum {
_MODBUS_BACKEND_TYPE_RTU=0,
_MODBUS_BACKEND_TYPE_TCP
Expand Down
Loading