From 6b0d4a975ced000277568e7caa5759aa4eb826cf Mon Sep 17 00:00:00 2001 From: Matthias Prinke Date: Sun, 8 Oct 2023 13:07:43 +0200 Subject: [PATCH] Updated --- src/WeatherSensorCfg.h.template | 60 +++++++++++++++++---------------- 1 file changed, 31 insertions(+), 29 deletions(-) diff --git a/src/WeatherSensorCfg.h.template b/src/WeatherSensorCfg.h.template index b3f827f5..38194028 100644 --- a/src/WeatherSensorCfg.h.template +++ b/src/WeatherSensorCfg.h.template @@ -59,6 +59,37 @@ #include +// ------------------------------------------------------------------------------------------------ +// --- Weather Sensors --- +// ------------------------------------------------------------------------------------------------ +#define NUM_SENSORS 1 // Number of sensors to be received + +// List of sensor IDs to be excluded - can be empty +#define SENSOR_IDS_EXC { 0x792882A2 } +//#define SENSOR_IDS_EXC { 0x792882A2 } + +// List of sensor IDs to be included - if empty, handle all available sensors +#define SENSOR_IDS_INC {} +//#define SENSOR_IDS_INC { 0x83750871 } + +// List of sensor IDs of the model "BRESSER 3-in-1 Professional Wind Gauge / Anemometer" +// P/N 7002531 - requiring special heandling in decodeBresser5In1Payload() +//#define SENSOR_IDS_DECODE3IN1 {} +#define SENSOR_IDS_DECODE3IN1 { 0x2C100512 } + +// Disable data type which will not be used to save RAM +#define WIND_DATA_FLOATINGPOINT +#define WIND_DATA_FIXEDPOINT + +// Select appropriate sensor message format(s) +// Comment out unused decoders to save operation time/power +#define BRESSER_5_IN_1 +#define BRESSER_6_IN_1 +#define BRESSER_7_IN_1 +#define BRESSER_LIGHTNING +#define BRESSER_LEAKAGE + + // ------------------------------------------------------------------------------------------------ // --- Board --- // ------------------------------------------------------------------------------------------------ @@ -184,24 +215,6 @@ #endif -// ------------------------------------------------------------------------------------------------ -// --- Weather Sensors --- -// ------------------------------------------------------------------------------------------------ -#define NUM_SENSORS 1 // Number of sensors to be received - -// List of sensor IDs to be excluded - can be empty -#define SENSOR_IDS_EXC { 0x792882A2 } -//#define SENSOR_IDS_EXC { 0x792882A2 } - -// List of sensor IDs to be included - if empty, handle all available sensors -#define SENSOR_IDS_INC {} -//#define SENSOR_IDS_INC { 0x83750871 } - -// List of sensor IDs of the model "BRESSER 3-in-1 Professional Wind Gauge / Anemometer" -// P/N 7002531 - requiring special heandling in decodeBresser5In1Payload() -//#define SENSOR_IDS_DECODE3IN1 {} -#define SENSOR_IDS_DECODE3IN1 { 0x2C100512 } - // ------------------------------------------------------------------------------------------------ // --- Debug Logging Output --- // ------------------------------------------------------------------------------------------------ @@ -308,17 +321,6 @@ #endif #endif -// Disable data type which will not be used to save RAM -#define WIND_DATA_FLOATINGPOINT -#define WIND_DATA_FIXEDPOINT - -// Select appropriate sensor message format(s) -#define BRESSER_5_IN_1 -#define BRESSER_6_IN_1 -#define BRESSER_7_IN_1 -#define BRESSER_LIGHTNING -#define BRESSER_LEAKAGE - #if ( !defined(BRESSER_5_IN_1) && !defined(BRESSER_6_IN_1) && !defined(BRESSER_7_IN_1) ) #error "Either BRESSER_5_IN_1 and/or BRESSER_6_IN_1 and/or BRESSER_7_IN_1 must be defined!" #endif