Skip to content

Commit 9760215

Browse files
committed
Refine debug outputs
1 parent 73c86f3 commit 9760215

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/OBD2_KLine.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ void OBD2_KLine::writeData(const uint8_t* data, uint8_t dataLength) {
196196
}
197197

198198
uint8_t OBD2_KLine::readData() {
199-
debugPrintln(F("Reading..."));
199+
debugPrint(F("Reading Data ... "));
200200
unsigned long startMillis = millis();
201201
int bytesRead = 0;
202202

@@ -224,7 +224,8 @@ uint8_t OBD2_KLine::readData() {
224224
}
225225
}
226226

227-
debugPrintln(F("\n✅ Data reception completed."));
227+
debugPrintln(F(""));
228+
// debugPrintln(F("\n✅ Data reception completed."));
228229
return bytesRead;
229230
}
230231
}
@@ -722,7 +723,8 @@ void OBD2_KLine::setProtocol(const String& protocolName) {
722723
selectedProtocol = protocolName;
723724
connectionStatus = false; // Reset connection status
724725
connectedProtocol = ""; // Reset connected protocol
725-
debugPrintln(("Protocol set to: " + selectedProtocol).c_str());
726+
debugPrint(F("Protocol set to: "));
727+
debugPrintln((selectedProtocol).c_str());
726728
}
727729

728730
// 5 Baud 7O1 (1 start, 7 data, 1 parity, 1 stop)

0 commit comments

Comments
 (0)