You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
uint32_tXferOptions=obj->handle.XferOptions; // save XferOptions value, because handle can be modified by HAL, which cause issue in case of NACK from slave
721
+
#endif
722
+
719
723
do {
720
-
if (HAL_I2C_Master_Seq_Transmit_IT(&(obj->handle), dev_address, data, size, obj->handle.XferOptions) ==HAL_OK) {
724
+
#if defined(I2C_OTHER_FRAME)
725
+
if (HAL_I2C_Master_Seq_Transmit_IT(&(obj->handle), dev_address, data, size, XferOptions) ==HAL_OK) {
726
+
#else
727
+
if (HAL_I2C_Master_Transmit_IT(&(obj->handle), dev_address, data, size) ==HAL_OK) {
728
+
#endif
721
729
ret=I2C_OK;
722
730
// wait for transfer completion
723
731
while ((HAL_I2C_GetState(&(obj->handle)) !=HAL_I2C_STATE_READY)
uint32_tXferOptions=obj->handle.XferOptions; // save XferOptions value, because handle can be modified by HAL, which cause issue in case of NACK from slave
790
+
#endif
791
+
780
792
do {
781
-
if (HAL_I2C_Master_Seq_Receive_IT(&(obj->handle), dev_address, data, size, obj->handle.XferOptions) ==HAL_OK) {
793
+
#if defined(I2C_OTHER_FRAME)
794
+
if (HAL_I2C_Master_Seq_Receive_IT(&(obj->handle), dev_address, data, size, XferOptions) ==HAL_OK) {
795
+
#else
796
+
if (HAL_I2C_Master_Receive_IT(&(obj->handle), dev_address, data, size) ==HAL_OK) {
797
+
#endif
782
798
ret=I2C_OK;
783
799
// wait for transfer completion
784
800
while ((HAL_I2C_GetState(&(obj->handle)) !=HAL_I2C_STATE_READY)
0 commit comments