mirror of
https://github.com/esphome/esphome.git
synced 2025-03-14 04:25:15 +01:00
pw_on, slncid to loop
This commit is contained in:
parent
c67ee68404
commit
d35d9e9adf
1 changed files with 8 additions and 1 deletions
|
@ -183,10 +183,12 @@ void KT0803Component::dump_config() {
|
|||
}
|
||||
|
||||
void KT0803Component::update() {
|
||||
/*
|
||||
if (this->read_reg_(0x0F)) {
|
||||
this->publish_pw_ok();
|
||||
this->publish_slncid();
|
||||
}
|
||||
*/
|
||||
/*
|
||||
for (size_t addr = 0; addr < 0x2F; addr++) {
|
||||
uint8_t c;
|
||||
|
@ -197,7 +199,12 @@ void KT0803Component::update() {
|
|||
*/
|
||||
}
|
||||
|
||||
void KT0803Component::loop() {}
|
||||
void KT0803Component::loop() {
|
||||
if (this->read_reg_(0x0F)) {
|
||||
this->publish_pw_ok();
|
||||
this->publish_slncid();
|
||||
}
|
||||
}
|
||||
|
||||
// config
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue