When introducing HALv2, some binary variables have been changed from uint8_t to bool.
A mistake was introduce in the HAL_I2C_ErrorCallback function.
- if (obj->isMaster == 0) {
+ if (obj->isMaster) {
+#if defined(USE_HALV2_DRIVER)
+ HAL_I2C_SLAVE_EnableListen_IT(hi2c);
+#else
HAL_I2C_EnableListen_IT(hi2c);
+#endif
New condition was wrong as it should be:
if (!obj->isMaster)
When introducing HALv2, some binary variables have been changed from
uint8_ttobool.A mistake was introduce in the
HAL_I2C_ErrorCallbackfunction.New condition was wrong as it should be:
if (!obj->isMaster)