From b90f22a7c21ce05874f40b03896d89446919a026 Mon Sep 17 00:00:00 2001 From: Iron Man Date: Tue, 23 Apr 2024 17:41:26 +0200 Subject: [PATCH] Update ds248x.h Macros not allowed --- esphome/components/ds248x/ds248x.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/ds248x/ds248x.h b/esphome/components/ds248x/ds248x.h index 1d4c42713c..4e0f73b4f6 100644 --- a/esphome/components/ds248x/ds248x.h +++ b/esphome/components/ds248x/ds248x.h @@ -5,7 +5,7 @@ #include "esphome/components/sensor/sensor.h" #include "esphome/components/i2c/i2c.h" -#define NBR_CHANNELS 8 +static const uint8_t NBR_CHANNELS = 8; namespace esphome {