From dff0de8503fdc335e77aef6521881ae8d5b76ae1 Mon Sep 17 00:00:00 2001 From: olkal Date: Tue, 22 Sep 2020 21:23:52 +0200 Subject: [PATCH] 1.2.2 --- README.md | 1 - library.properties | 2 +- src/HX711_ADC.cpp | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 04a3dcd..57b7d28 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,3 @@ -# 18.04.2020: New version 1.2.0! Latest release and change log here: https://github.com/olkal/HX711_ADC/releases This an Arduino library for the HX711 24-bit ADC for weight scales. diff --git a/library.properties b/library.properties index f2604f1..9e3ec6b 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=HX711_ADC -version=1.2.1 +version=1.2.2 author=Olav Kallhovd maintainer=Olav Kallhovd sentence=Library for the HX711 24-bit ADC for weight scales. diff --git a/src/HX711_ADC.cpp b/src/HX711_ADC.cpp index 531fc00..196d686 100644 --- a/src/HX711_ADC.cpp +++ b/src/HX711_ADC.cpp @@ -293,6 +293,7 @@ uint8_t HX711_ADC::conversion24bit() //read 24 bit data, store in dataset and s if(SCK_DELAY) delayMicroseconds(1); // could be required for faster mcu's, set value in config.h digitalWrite(sckPin, 1); if(SCK_DELAY) delayMicroseconds(1); // could be required for faster mcu's, set value in config.h + digitalWrite(sckPin, 0); if (i < (24)) { dout = digitalRead(doutPin); @@ -302,7 +303,6 @@ uint8_t HX711_ADC::conversion24bit() //read 24 bit data, store in dataset and s data++; } } - digitalWrite(sckPin, 0); } if(SCK_DISABLE_INTERRUPTS) interrupts(); //convert range from 0x800000 > 0x7FFFFF to 0x000000 > 0xFFFFFF: @@ -310,7 +310,7 @@ uint8_t HX711_ADC::conversion24bit() //read 24 bit data, store in dataset and s if ((data < 0x000000) || (data > 0xFFFFFF)) { dataOutOfRange = 1; - Serial.println("dataOutOfRange"); + //Serial.println("dataOutOfRange"); } if (readIndex == samplesInUse + IGN_HIGH_SAMPLE + IGN_LOW_SAMPLE - 1) {