Fix un-initialized version string (#5865)

This commit is contained in:
Mike La Spina 2023-12-04 17:15:01 -06:00 committed by GitHub
parent 788f1b60e2
commit e271faa544
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -255,12 +255,11 @@ class LD2420Component : public Component, public uart::UARTDevice {
uint16_t gate_energy_[LD2420_TOTAL_GATES]; uint16_t gate_energy_[LD2420_TOTAL_GATES];
CmdReplyT cmd_reply_; CmdReplyT cmd_reply_;
uint32_t timeout_;
uint32_t max_distance_gate_; uint32_t max_distance_gate_;
uint32_t min_distance_gate_; uint32_t min_distance_gate_;
uint16_t system_mode_{CMD_SYSTEM_MODE_ENERGY}; uint16_t system_mode_{CMD_SYSTEM_MODE_ENERGY};
bool cmd_active_{false}; bool cmd_active_{false};
char ld2420_firmware_ver_[8]; char ld2420_firmware_ver_[8]{"v0.0.0"};
bool presence_{false}; bool presence_{false};
bool calibration_{false}; bool calibration_{false};
uint16_t distance_{0}; uint16_t distance_{0};