From 3b1445fccb1cf0813a5e13594f1f146504244b2b Mon Sep 17 00:00:00 2001 From: Screek Worshop <126383355+screekworkshop@users.noreply.github.com> Date: Sat, 29 Jul 2023 10:44:15 +0800 Subject: [PATCH] Update screek-humen-sensor-2a.yaml Thanks to JurnD for pointing out that we miscalculated a byte count on the distance resolution of p3. --- 2a/yaml/screek-humen-sensor-2a.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/2a/yaml/screek-humen-sensor-2a.yaml b/2a/yaml/screek-humen-sensor-2a.yaml index ddf8f6f..e39f2bd 100644 --- a/2a/yaml/screek-humen-sensor-2a.yaml +++ b/2a/yaml/screek-humen-sensor-2a.yaml @@ -329,7 +329,7 @@ uart: }else{ p3_speed = 0 - p3_speed; } - int16_t p3_distance_resolution = (uint16_t((bytes[19] << 8) | bytes[18] )); + int16_t p3_distance_resolution = (uint16_t((bytes[27] << 8) | bytes[26] )); id(target1_x).publish_state(p1_x); id(target1_y).publish_state(p1_y); @@ -353,4 +353,4 @@ button: - platform: factory_reset disabled_by_default: True name: Factory Reset - id: factory_reset_all \ No newline at end of file + id: factory_reset_all