mirror of
https://github.com/esphome/esphome.git
synced 2024-11-23 15:38:11 +01:00
Merge pull request #1 from marcusb/ld2450
Detect movement also in the negative direction
This commit is contained in:
commit
b0469c139d
1 changed files with 1 additions and 1 deletions
|
@ -336,7 +336,7 @@ void LD2450Component::handle_periodic_data_(uint8_t *buffer, int len) {
|
|||
if (ss != nullptr) {
|
||||
val = this->decode_speed_(buffer[start], buffer[start + 1]);
|
||||
ts = val;
|
||||
if (val > 0) {
|
||||
if (val) {
|
||||
is_moving = true;
|
||||
moving_target_count++;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue