Skip to content

Commit 8db45ad

Browse files
committed
Fixes to multi_server_rtu examples
1 parent 8fafaa3 commit 8db45ad

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/multi_server_rtu.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include <pthread.h>
22
#include <stdio.h>
33
#include <stdlib.h>
4+
#include <string.h>
45
#include <unistd.h>
56

67
#include "nanomodbus.h"
@@ -100,6 +101,7 @@ int main(int argc, char* argv[]) {
100101
UNUSED_PARAM(argv);
101102

102103
nmbs_platform_conf c_conf;
104+
nmbs_platform_conf_create(&c_conf);
103105
c_conf.arg = wire;
104106
c_conf.transport = NMBS_TRANSPORT_RTU;
105107
c_conf.read = read_wire;

0 commit comments

Comments
 (0)