From b9ff34dfb2e8807c5fe82aa3da6dfc63ce4e42ed Mon Sep 17 00:00:00 2001 From: Jimmy Wennlund Date: Sun, 8 Sep 2024 23:29:18 +0200 Subject: [PATCH] Add namespace into constant.h --- esphome/components/bl0910/constant.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/esphome/components/bl0910/constant.h b/esphome/components/bl0910/constant.h index aba482f6e2..8138e1e842 100644 --- a/esphome/components/bl0910/constant.h +++ b/esphome/components/bl0910/constant.h @@ -1,3 +1,9 @@ +#pragma once +#include + +namespace esphome { +namespace bl0910 { + // Credit to JustNoot for the following constants // https://github.com/JustNoot/10CH-Energy-Meter/blob/main/bl0910_esp32_test.ino @@ -285,3 +291,6 @@ static const uint8_t BL0910_REG_VA_OFFSET = 0xCD; static const uint8_t BL0910_REG_CFDIV = 0xCE; static const uint8_t BL0910_REG_OTP_CHECKSUM1 = 0xD0; + +} // namespace bl0910 +} // namespace esphome