Correct the indentation in W7500x_i2c.c only.

pull/1189/head
hjjeon0608 2015-06-18 10:55:29 +09:00
parent 91cfb6ca9d
commit 6dfbf69691
1 changed files with 5 additions and 9 deletions

View File

@ -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);