From 08cdc59088d7d37a33ee9825524c4ac10aa88a35 Mon Sep 17 00:00:00 2001 From: Mikhail Grushinskiy Date: Wed, 30 Oct 2024 00:31:52 -0400 Subject: [PATCH] Update bbn_m5atomS3_lite_TDS_CQRSENTDS01.ino --- .../bbn_m5atomS3_lite_TDS_CQRSENTDS01.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bbn_m5atomS3_lite_TDS_CQRSENTDS01/bbn_m5atomS3_lite_TDS_CQRSENTDS01.ino b/bbn_m5atomS3_lite_TDS_CQRSENTDS01/bbn_m5atomS3_lite_TDS_CQRSENTDS01.ino index 4b95b39..18d7390 100644 --- a/bbn_m5atomS3_lite_TDS_CQRSENTDS01/bbn_m5atomS3_lite_TDS_CQRSENTDS01.ino +++ b/bbn_m5atomS3_lite_TDS_CQRSENTDS01/bbn_m5atomS3_lite_TDS_CQRSENTDS01.ino @@ -19,10 +19,10 @@ void setup() { void loop() { float temp = 25.0; // TODO: read temperature from a real sensor - float tdsValue = tds.update(temp); + float tdsValuePPM = tds.update(temp); if (timeout < millis()) { - gen_nmea0183_xdr("$BBXDR,X,%.1f,S,TDS", (float)(tdsValue * 1000.0)); // Parts per Thousand + gen_nmea0183_xdr("$BBXDR,X,%.4f,S,TDS", (float)(tdsValuePPM * 0.001)); // Parts per Thousand timeout = millis() + 1000; } }