Skip to content

Commit

Permalink
fixed some debug output issues
Browse files Browse the repository at this point in the history
  • Loading branch information
hpsaturn committed Feb 10, 2023
1 parent 296e3bf commit 853f21f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Sensors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ void Sensors::printUnitsRegistered(bool debug) {
*/
void Sensors::printSensorsRegistered(bool debug) {
if (!debug) return;
Serial.printf("-->[SLIB] Sensors devices count\t: %i (", sensors_registered_count);
Serial.printf("-->[SLIB] Sensors i2c count \t: %i (", sensors_registered_count);
int i = 0;
while (sensors_registered[i++] != 0) {
Serial.print(sensors_device_names[sensors_registered[i-1]]);
Expand All @@ -575,7 +575,7 @@ void Sensors::printSensorsRegistered(bool debug) {
/// Print preview of the current variables detected by the sensors
void Sensors::printValues() {
if (!devmode) return;
Serial.print("-->[SLIB] Preview sensors values: ");
Serial.print("-->[SLIB] Sensors values \t: ");
for (u_int i = 0; i < UCOUNT; i++) {
if (units_registered[i] != 0) {
Serial.print(getUnitName((UNIT)units_registered[i]));
Expand Down

0 comments on commit 853f21f

Please sign in to comment.