From d72086bc6b77e77cd14f861aa13717b31af1a942 Mon Sep 17 00:00:00 2001 From: theandy94 Date: Sun, 10 Jul 2022 16:51:46 +0200 Subject: [PATCH] Fixed getRawTemperature and getRawHumidity The internal variables that the raw values are read from were swapped. --- SHT2x.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SHT2x.h b/SHT2x.h index 9e2b6d4..de11cd4 100644 --- a/SHT2x.h +++ b/SHT2x.h @@ -55,8 +55,8 @@ class SHT2x float getTemperature(); float getHumidity(); - uint16_t getRawTemperature() { return _rawHumidity; }; - uint16_t getRawHumidity() { return _rawTemperature; }; + uint16_t getRawTemperature() { return _rawTemperature; }; + uint16_t getRawHumidity() { return _rawHumidity; }; // might take up to 15 milliseconds. bool reset();