Skip to content

Commit

Permalink
Tare timeout bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
olkal committed Dec 26, 2018
1 parent f851d3e commit 4499a34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=HX711_ADC
version=1.1.0
version=1.1.1
author=Olav Kallhovd
maintainer=Olav Kallhovd
sentence=Arduino library for the HX711 24-bit ADC for weight scales
Expand Down
2 changes: 1 addition & 1 deletion src/HX711_ADC.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class HX711_ADC
bool startStatus;
uint8_t convRslt;
bool tareStatus;
const unsigned int tareTimeOut = (DATA_SET * 110) + 500; // tare timeout time in ms, no of samples * 110ms (10SPS + 10%) + 500ms margin
unsigned int tareTimeOut = (SAMPLES + IGN_HIGH_SAMPLE + IGN_HIGH_SAMPLE) * 150; // tare timeout time in ms, no of samples * 150ms (10SPS + 50% margin)
bool tareTimeoutFlag;
bool tareTimeoutDisable = 0;
};
Expand Down

0 comments on commit 4499a34

Please sign in to comment.