From b5dae4a1cecf48488ed8992ef29ced13bbf5e45f Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Mon, 1 Feb 2021 15:31:44 +0100 Subject: [PATCH] [Bugfix] Fix a constant name in config.h.sample and add a note about MODE_PROM_PUSH --- config.h.sample | 2 +- consts.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/config.h.sample b/config.h.sample index 200f330..3db09a7 100644 --- a/config.h.sample +++ b/config.h.sample @@ -41,7 +41,7 @@ #define SYSTEM_NAME "internal-hostname" // The mode this system should run in. See consts.h for the available values. -#define SYSTEM_MODE MODE_PULL +#define SYSTEM_MODE MODE_PROM_PULL // If you have a DHT temperature+humidity sensor of this type will be used, // remove the #undef line and uncomment one of DHT11 or DHT22. You also have diff --git a/consts.h b/consts.h index 4b7496e..1709e84 100644 --- a/consts.h +++ b/consts.h @@ -27,3 +27,6 @@ // Prometheus Pull mode. A Prometheus instance has to be configured to // regularly pull values from the station. #define MODE_PROM_PULL 1 + +// NOTE: Bit 1 (ie. value of 2) is reserved for MODE_PROM_PUSH when it gets +// implemented