10000 Reduce TimeOut Recover debug output · tomgco/arduino-esp32@dfbc142 · GitHub
[go: up one dir, main page]

Skip to content

Commit dfbc142

Browse files
authored
Reduce TimeOut Recover debug output
Change when TimeOut Recovery (i.e. SCL stretching is reported). Now, it is only reported if the Global Debug level is set to DEBUG. This message is not an ERROR, it is just debug code.
1 parent 5a8d58d commit dfbc142

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp32/esp32-hal-i2c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,7 @@ if(!(eBits==EVENT_DONE)&&(eBits&~(EVENT_ERROR_NAK|EVENT_ERROR_DATA_NAK|EVENT_ERR
11081108
}
11091109

11101110
if(eBits&EVENT_DONE){ // no gross timeout
1111-
#if ARDUHAL_LOG_LEVEL >= ARDUHAL_LOG_LEVEL_ERROR
1111+
#if ARDUHAL_LOG_LEVEL >= ARDUHAL_LOG_LEVEL_DEBUG
11121112
uint32_t expected =(totalBytes*10*1000)/i2cGetFrequency(i2c);
11131113
if((tAfter-tBefore)>(expected+1)) { //used some of the timeout Period
11141114
// expected can be zero due to small packets

0 commit comments

Comments
 (0)
0