From ab17709435fc79057bea554b68cfa851d4fdae49 Mon Sep 17 00:00:00 2001 From: Ollo Date: Sat, 27 May 2023 09:12:55 +0200 Subject: [PATCH] More serial debuging (parsing 1WIRE Addresses failed) --- esp32/src/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/esp32/src/main.cpp b/esp32/src/main.cpp index 7f4aa7a..12f59bd 100644 --- a/esp32/src/main.cpp +++ b/esp32/src/main.cpp @@ -373,6 +373,7 @@ void readPowerSwitchedSensors() tankSensor.setAddress(0x52); tankSensor.setBus(&Wire); delay(50); + Serial << "Distance sensor init" << endl; long start = millis(); bool distanceReady = false; while ((start + WATERSENSOR_TIMEOUT) > millis()) @@ -395,6 +396,7 @@ void readPowerSwitchedSensors() tankSensor.setVcselPulsePeriod(VL53L0X::VcselPeriodPreRange, 18); tankSensor.setVcselPulsePeriod(VL53L0X::VcselPeriodFinalRange, 14); tankSensor.setMeasurementTimingBudget(200000); + Serial << "Distance sensor measuring" << endl; for (int readCnt = 0; readCnt < WATERSENSOR_CYCLE; readCnt++) { @@ -847,7 +849,7 @@ void safeSetup() mPlants[i].initSensors(); } readPowerSwitchedSensors(); - + Serial << "Reading Homie Config..." << endl; Homie.setup();