1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-22 15:46:14 +01:00

Shorten I2C error message

This commit is contained in:
Neil McKechnie 2023-03-15 09:39:20 +00:00
parent 4a1210fa64
commit 75b5806eb7

View File

@ -74,7 +74,7 @@ void I2CManagerClass::begin(void) {
_beginCompleted = true; _beginCompleted = true;
// Check for short-circuit or floating lines (no pull-up) on I2C before enabling I2C // Check for short-circuit or floating lines (no pull-up) on I2C before enabling I2C
const FSH *message = F("WARNING: Possible short-circuit or inadequate pullup on I2C %S line"); const FSH *message = F("WARNING: Check I2C %S line for short/pullup");
pinMode(SDA, INPUT); pinMode(SDA, INPUT);
if (!digitalRead(SDA)) if (!digitalRead(SDA))
DIAG(message, F("SDA")); DIAG(message, F("SDA"));