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:
parent
4a1210fa64
commit
75b5806eb7
|
@ -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"));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user