diff --git a/bacnet-stack/ports/bdk-atxx4-mstp/hardware.h b/bacnet-stack/ports/bdk-atxx4-mstp/hardware.h index 7e59ced0..1c21e023 100644 --- a/bacnet-stack/ports/bdk-atxx4-mstp/hardware.h +++ b/bacnet-stack/ports/bdk-atxx4-mstp/hardware.h @@ -49,8 +49,12 @@ /*#define SEEPROM_PAGE_SIZE 64 */ /*#define SEEPROM_WORD_ADDRESS_16BIT 1 */ /* SEEPROM is 24C16 */ +#ifndef SEEPROM_PAGE_SIZE #define SEEPROM_PAGE_SIZE 16 +#endif +#ifndef SEEPROM_WORD_ADDRESS_16BIT #define SEEPROM_WORD_ADDRESS_16BIT 0 +#endif #define SEEPROM_I2C_ADDRESS 0xA0 #define SEEPROM_I2C_CLOCK 400000L diff --git a/bacnet-stack/ports/bdk-atxx4-mstp/input.c b/bacnet-stack/ports/bdk-atxx4-mstp/input.c index a795b65e..269adcd8 100644 --- a/bacnet-stack/ports/bdk-atxx4-mstp/input.c +++ b/bacnet-stack/ports/bdk-atxx4-mstp/input.c @@ -33,7 +33,9 @@ static uint8_t Address_Switch; static uint8_t Buttons; static struct itimer Debounce_Timer; +#ifndef BDK_V1_HACK #define BDK_V1_HACK 0 +#endif #if BDK_V1_HACK /* version 1 BDK workaournd for floating inputs */