Update screek-humen-sensor-2a.yaml

Thanks to JurnD for pointing out that we miscalculated a byte count on the distance resolution of p3.
This commit is contained in:
Screek Worshop 2023-07-29 10:44:15 +08:00 committed by GitHub
parent 82ad16d842
commit 3b1445fccb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);