From c2f0f96411e7022e32df9b58d6aee80c81e42ec0 Mon Sep 17 00:00:00 2001 From: Barbudor Date: Fri, 18 Dec 2020 21:56:10 +0100 Subject: [PATCH] Allow DS18X20_MAX_SENSORS to be redefined --- tasmota/xsns_05_ds18x20.ino | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasmota/xsns_05_ds18x20.ino b/tasmota/xsns_05_ds18x20.ino index 6b46700c3..8fbc1cf46 100644 --- a/tasmota/xsns_05_ds18x20.ino +++ b/tasmota/xsns_05_ds18x20.ino @@ -38,7 +38,9 @@ #define W1_WRITE_SCRATCHPAD 0x4E #define W1_READ_SCRATCHPAD 0xBE +#ifndef DS18X20_MAX_SENSORS // DS18X20_MAX_SENSORS fallback to 8 if not defined in user_config_override.h #define DS18X20_MAX_SENSORS 8 +#endif const char kDs18x20Types[] PROGMEM = "DS18x20|DS18S20|DS1822|DS18B20|MAX31850";