Compare commits

..
2 changed files with 8 additions and 8 deletions
@@ -23,6 +23,9 @@ enum OtaHttpRequestError : uint8_t {
class OtaHttpRequestComponent final : public ota::OTAComponent, public Parented<HttpRequestComponent> {
public:
// User provided, not "= default": `new(p) OtaHttpRequestComponent()` would zero-fill .bss that is already zero.
OtaHttpRequestComponent() {}
void dump_config() override;
float get_setup_priority() const override { return setup_priority::AFTER_WIFI; }
+5 -8
View File
@@ -41,9 +41,6 @@ enum LTR390RESOLUTION {
class LTR390Component final : public PollingComponent, public i2c::I2CDevice {
public:
// User provided, not "= default": `new(p) LTR390Component()` would zero-fill .bss that is already zero.
LTR390Component() {}
void setup() override;
void dump_config() override;
void update() override;
@@ -74,11 +71,11 @@ class LTR390Component final : public PollingComponent, public i2c::I2CDevice {
bool reading_{false};
uint8_t enabled_modes_{0};
LTR390GAIN gain_als_{};
LTR390GAIN gain_uv_{};
LTR390RESOLUTION res_als_{};
LTR390RESOLUTION res_uv_{};
float wfac_{0};
LTR390GAIN gain_als_;
LTR390GAIN gain_uv_;
LTR390RESOLUTION res_als_;
LTR390RESOLUTION res_uv_;
float wfac_;
sensor::Sensor *light_sensor_{nullptr};
sensor::Sensor *als_sensor_{nullptr};