Skip to content

Commit 609eba3

Browse files
authored
Fix compilation for STM32 core
1 parent 6594b8d commit 609eba3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/libmodbus/modbus.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@
5050
#define ENOTSUP 134
5151
#endif
5252

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

0 commit comments

Comments
 (0)