From 06d918a926426f6ecbcdfabb87c3e452cd4a69f7 Mon Sep 17 00:00:00 2001 From: olkal Date: Wed, 5 May 2021 22:26:41 +0200 Subject: [PATCH] 1.2.8 --- examples/Persistent_zero_offset/Persistent_zero_offset.ino | 3 +++ library.properties | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/Persistent_zero_offset/Persistent_zero_offset.ino b/examples/Persistent_zero_offset/Persistent_zero_offset.ino index 565349b..308057a 100644 --- a/examples/Persistent_zero_offset/Persistent_zero_offset.ino +++ b/examples/Persistent_zero_offset/Persistent_zero_offset.ino @@ -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); diff --git a/library.properties b/library.properties index 3082fb0..15ecefc 100644 --- a/library.properties +++ b/library.properties @@ -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.