Skip to content

Commit

Permalink
1.2.8
Browse files Browse the repository at this point in the history
  • Loading branch information
olkal committed May 5, 2021
1 parent 128d2f8 commit 06d918a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions examples/Persistent_zero_offset/Persistent_zero_offset.ino
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ void refreshOffsetValueAndSaveToEEprom() {
LoadCell.tare(); // calculate the new tare / zero offset value (blocking)
_offset = LoadCell.getTareOffset(); // get the new tare / zero offset value
EEPROM.put(tareOffsetVal_eepromAdress, _offset); // save the new tare / zero offset value to EEprom
#if defined(ESP8266) || defined(ESP32)
EEPROM.commit();
#endif
LoadCell.setTareOffset(_offset); // set value as library parameter (next restart it will be read from EEprom)
Serial.print("New tare offset value:");
Serial.print(_offset);
Expand Down
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.2.7
version=1.2.8
author=Olav Kallhovd
maintainer=Olav Kallhovd
sentence=Library for the HX711 24-bit ADC for weight scales.
Expand Down

0 comments on commit 06d918a

Please sign in to comment.