Skip to content

Commit 8495ab5

Browse files
authored
Update modbus.c
1 parent eee9c5b commit 8495ab5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/libmodbus/modbus.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#include <unistd.h>
2020
#endif
2121
#ifdef ARDUINO
22-
#include <Arduino.h>
2322

2423
#ifndef DEBUG
2524
#define printf(...) {}
@@ -51,6 +50,11 @@
5150
#define ENOTSUP 134
5251
#endif
5352

53+
/* workaround for stm32duino delay and delayMicroseconds */
54+
#ifdef ARDUINO_ARCH_STM32
55+
#include <wiring_time.h>
56+
#endif
57+
5458
#include "modbus.h"
5559
#include "modbus-private.h"
5660

0 commit comments

Comments
 (0)