levylabpitt / LN2-DIGITAL-SCALE

BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Scale periodically reads 0 kg #2

Open ciozi137 opened 6 months ago

ciozi137 commented 6 months ago

image scale periodically reads 0 kg.

Proposed fix: add read validation code: valid string: ASNG/W+\s38.20\s\skg\s\s\r\n

If AND all == F: repeat read operation

ciozi137 commented 6 months ago

A: communication address set by user S: stable N: no error G/W: gross weight