From 0f8012f5fd2eb3d7e44ed7b636b12b9827a3762e Mon Sep 17 00:00:00 2001 From: Mitchell Grams Date: Wed, 30 Apr 2025 21:19:28 -0600 Subject: [PATCH] Fix code guard --- expanders_init.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/expanders_init.h b/expanders_init.h index 1c8737e..8b5af81 100644 --- a/expanders_init.h +++ b/expanders_init.h @@ -61,9 +61,8 @@ extern void pca9654e_init(void); #if PICOHAL_IO_ENABLE -#ifndef MODBUS_ENABLE +#if !MODBUS_ENABLE #error "Modbus must be enabled to use the Picohal IO expander!" -#undef PICOHAL_IO_ENABLE #endif extern void picohal_io_init (void);