Skip to content

Commit

Permalink
floating point
Browse files Browse the repository at this point in the history
  • Loading branch information
superpenguin612 committed Nov 6, 2024
1 parent bc40534 commit 2dfaeb1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ float HX711_Bus::read_scale(uint8_t id) {
if (encs[id].is_ready()) {
// since we could start with weight on the load cell, manually subtract zero point instead of
// taring
float val = encs[id].read() - 8142300;
float val = encs[id].read() - 8142300F;
// if load cell is not returning any data, but HX711 is connected
if (val == 0)
return -1;
Expand Down

0 comments on commit 2dfaeb1

Please sign in to comment.