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

I2C Manager, adjust loop code.

loop() contains startTransaction which is called after handleInterrupt().  However, startTransaction is called within handleInterrupt so remove the extra call.  This appears to solve strange problems encountered with the LCD display.
This commit is contained in:
Neil McKechnie 2021-08-25 00:34:19 +01:00
parent 80fc9e8a68
commit fa04fa5084

View File

@ -164,8 +164,6 @@ void I2CManagerClass::loop() {
#if !defined(I2C_USE_INTERRUPTS) #if !defined(I2C_USE_INTERRUPTS)
handleInterrupt(); handleInterrupt();
#endif #endif
// If free, initiate next transaction
startTransaction();
checkForTimeout(); checkForTimeout();
} }