Skip to content

Commit 5ec7ef9

Browse files
committed
Allow compilation in absence of RS485 library
1 parent d41bdd0 commit 5ec7ef9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/Utils.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include "Arduino_POSIXStorage.h"
88
#include <iostream>
99

10-
#if !defined(HAS_SERIAL) && defined(HAS_RS485)
10+
#if !defined(HAS_SERIAL) && defined(HAS_RS485) && __has_include(<ArduinoRS485.h>)
1111
#include <ArduinoRS485.h>
1212

1313

0 commit comments

Comments
 (0)