Reindent files using spaces
This commit is contained in:
committed by
Jeremy Soller
parent
720af4b2b0
commit
4963e04a83
@@ -11,9 +11,9 @@ int i2c_recv(struct I2C * i2c, uint8_t addr, uint8_t* data, int length) __reentr
|
||||
res = i2c_read(i2c, data, length);
|
||||
if (res < 0) return res;
|
||||
|
||||
i2c_stop(i2c);
|
||||
i2c_stop(i2c);
|
||||
|
||||
return res;
|
||||
return res;
|
||||
}
|
||||
|
||||
int i2c_send(struct I2C * i2c, uint8_t addr, uint8_t* data, int length) __reentrant {
|
||||
@@ -25,9 +25,9 @@ int i2c_send(struct I2C * i2c, uint8_t addr, uint8_t* data, int length) __reentr
|
||||
res = i2c_write(i2c, data, length);
|
||||
if (res < 0) return res;
|
||||
|
||||
i2c_stop(i2c);
|
||||
i2c_stop(i2c);
|
||||
|
||||
return res;
|
||||
return res;
|
||||
}
|
||||
|
||||
int i2c_get(struct I2C * i2c, uint8_t addr, uint8_t reg, uint8_t* data, int length) __reentrant {
|
||||
@@ -48,7 +48,7 @@ int i2c_set(struct I2C * i2c, uint8_t addr, uint8_t reg, uint8_t* data, int leng
|
||||
res = i2c_start(i2c, addr, false);
|
||||
if (res < 0) return res;
|
||||
|
||||
res = i2c_write(i2c, ®, 1);
|
||||
res = i2c_write(i2c, ®, 1);
|
||||
if (res < 0) return res;
|
||||
|
||||
return i2c_send(i2c, addr, data, length);
|
||||
|
Reference in New Issue
Block a user