mirror of https://github.com/ARMmbed/mbed-os.git
Correct the indentation in W7500x_i2c.c only.
parent
91cfb6ca9d
commit
6dfbf69691
|
@ -126,8 +126,6 @@ int8_t I2C_SendDataAck(I2C_TypeDef* I2Cx,uint16_t Data)
|
|||
|
||||
int I2C_ReceiveData(I2C_TypeDef* I2Cx, int last)
|
||||
{
|
||||
|
||||
|
||||
if(last)
|
||||
{
|
||||
I2C_AcknowledgeConfig(I2Cx,DISABLE);
|
||||
|
@ -139,7 +137,6 @@ int I2C_ReceiveData(I2C_TypeDef* I2Cx, int last)
|
|||
return -1;
|
||||
}
|
||||
|
||||
|
||||
return (uint8_t)I2Cx -> RXR;
|
||||
}
|
||||
|
||||
|
@ -556,7 +553,6 @@ void WriteByte(uint8_t val)
|
|||
digitalWrite(GPIOx,SCL, Bit_SET);
|
||||
i2c_loop_us(2);
|
||||
digitalWrite(GPIOx,SCL, Bit_RESET);
|
||||
// IIC_Byte<<=1;
|
||||
}
|
||||
digitalWrite(GPIOx,SDA, Bit_SET);
|
||||
i2c_loop_us(1);
|
||||
|
|
Loading…
Reference in New Issue