Skip to content

Commit 99293bb

Browse files
committed
Add mobus code guard
1 parent 2aa677f commit 99293bb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

expanders_init.h

+2-3
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,8 @@ extern void pca9654e_init(void);
6767

6868
#if PICOHAL_IO_ENABLE
6969

70-
#ifndef MODBUS_ENABLE
71-
#error "Modbus must be enabled to use the Picohal IO expander!"
72-
#undef PICOHAL_IO_ENABLE
70+
#if !MODBUS_ENABLE
71+
#error "Modbus must be enabled to use the PicoHAL IO expander!"
7372
#endif
7473

7574
extern void picohal_io_init (void);

0 commit comments

Comments
 (0)