mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 09:18:00 +01:00
Add namespace into constant.h
This commit is contained in:
parent
417d353d6c
commit
b9ff34dfb2
1 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
#pragma once
|
||||
#include <cstdint>
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue