Reformat modbus_tcp.c/h and fix some typos

This commit is contained in:
L-diy
2023-11-26 22:35:21 +01:00
parent 2090b039d4
commit e4b50559c4
2 changed files with 74 additions and 86 deletions

View File

@@ -8,7 +8,8 @@
#ifndef INC_MODBUS_H_
#define INC_MODBUS_H_
#define MODBUSPORT 502 //is the default
#define MODBUSPORT 502 // 502 is the default
#include <tcp.h>
@@ -21,9 +22,8 @@
/**
* @fn void modbus_init
* @brief Initiallises the modbus tcp
* @brief Initializes the modbus tcp
*/
void modbus_init(void);
#endif /* INC_MODBUS_H_ */