Commit Graph

15 Commits

Author SHA1 Message Date
PaulVua
eeaaeca4a7 fix(envea): correct serial read to prevent spurious spikes
- Replace readline() with read(32) to avoid truncation at 0x0A bytes
- Add reset_input_buffer() to clear stale data before each read
- Add initial read to consume echo/acknowledgment from sensor
- Add frame header validation (0xFF 0x02) to reject invalid data
- Add delays to allow sensor response time

Fixes issue where NO2/H2S sensors showed random spikes due to
binary data containing newline characters being misinterpreted.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-23 17:20:04 +01:00
Your Name
25c5a7a65a update 2025-07-22 15:36:36 +02:00
root
4d512685a0 update 2025-07-22 10:39:13 +02:00
Your Name
7bd1d81bf9 update 2025-05-26 09:34:07 +02:00
Your Name
4bc0dc2acc update 2025-05-26 09:24:47 +02:00
PaulVua
46a8e21e64 update 2025-03-25 16:20:19 +01:00
Your Name
accfd3e371 update 2025-02-20 13:13:25 +01:00
PaulVua
ecd61f765a update 2025-02-11 10:06:44 +01:00
Your Name
b8150535e8 update 2025-01-31 17:34:48 +01:00
PaulVua
a8ca15505e update 2025-01-29 16:22:20 +01:00
Your Name
4a5e0b3577 update 2025-01-29 10:04:01 +01:00
Your Name
806576b8b8 update 2025-01-23 11:24:42 +01:00
PaulVua
709a1e5dd5 update 2025-01-22 11:04:10 +01:00
PaulVua
85826449f1 update 2025-01-14 11:25:14 +01:00
PaulVua
3081e43a1a first commit 2025-01-09 14:09:21 +01:00