From a30461ea04aa855e55b7bd67d6593b7274d405f0 Mon Sep 17 00:00:00 2001 From: olkal Date: Sat, 5 Jan 2019 15:30:38 +0100 Subject: [PATCH] Update HX711_ADC.h --- src/HX711_ADC.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HX711_ADC.h b/src/HX711_ADC.h index caefc3b..ef128d0 100644 --- a/src/HX711_ADC.h +++ b/src/HX711_ADC.h @@ -73,7 +73,7 @@ class HX711_ADC uint8_t doutPin; //HX711 dout pin uint8_t GAIN; float calFactor; - long dataSampleSet[DATA_SET + 1]; // data set, make voltile if interrupt is used + volatile long dataSampleSet[DATA_SET + 1]; // data set, make voltile if interrupt is used long tareOffset; int readIndex = 0; unsigned long conversionStartTime;