Fix hard faults by moving slaveConfig and slaveHandle out of InitI2c(), thereby making them always available for KSDK. Fixed by @santiagogf89.

This commit is contained in:
László Monda
2017-10-03 19:15:33 +02:00
parent 90bad68287
commit 7061345ec2
2 changed files with 4 additions and 27 deletions

View File

@@ -28,7 +28,7 @@ void I2C_WATCHDOG_LPTMR_HANDLER(void)
// NVIC_SystemReset();
I2cWatchdog_InnerCounter++;
I2C_SlaveDeinit(I2C_BUS_BASEADDR);
InitI2cV2();
InitI2c();
}
prevWatchdogCounter = I2C_Watchdog;