Skip to content

Commit

Permalink
Update bbn_m5atomS3_lite_TDS_CQRSENTDS01.ino
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrouch authored Oct 30, 2024
1 parent 8c05fb9 commit 08cdc59
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 08cdc59

Please sign in to comment.