From ea3b18732992f38c7f34bbef03e364e1ec2ac61b Mon Sep 17 00:00:00 2001 From: Paul Date: Mon, 22 Aug 2022 09:34:59 +0100 Subject: [PATCH] Fix a mistake in getTemperatureOffset --- src/SparkFun_SCD30_Arduino_Library.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SparkFun_SCD30_Arduino_Library.cpp b/src/SparkFun_SCD30_Arduino_Library.cpp index 3082507..5f7a11c 100644 --- a/src/SparkFun_SCD30_Arduino_Library.cpp +++ b/src/SparkFun_SCD30_Arduino_Library.cpp @@ -171,7 +171,7 @@ float SCD30::getTemperatureOffset(void) int16_t signed16; uint16_t unsigned16; } signedUnsigned; // Avoid any ambiguity casting int16_t to uint16_t - signedUnsigned.signed16 = response; + signedUnsigned.unsigned16 = response; return (((float)signedUnsigned.signed16) / 100.0); }