Support high update rates and fix several bugs in the cse7766 component. (#3675)

This commit is contained in:
Frank Riley
2022-08-24 21:12:45 -07:00
committed by GitHub
parent 8fa18ca7c7
commit 2819166539
2 changed files with 75 additions and 62 deletions
+2
View File
@@ -39,6 +39,8 @@ class CSE7766Component : public PollingComponent, public uart::UARTDevice {
uint32_t voltage_counts_{0};
uint32_t current_counts_{0};
uint32_t power_counts_{0};
// Setting this to 1 means it will always publish 0 once at startup
uint32_t energy_total_counts_{1};
};
} // namespace cse7766