compile fix

This commit is contained in:
px4dev 2013-01-15 22:59:57 -08:00
parent b4dcdae03d
commit d207d22a4f
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ I2C::transfer(i2c_msg_s *msgv, unsigned msgs)
* preference. Really, this is pointless.
*/
I2C_SETFREQUENCY(_dev, _frequency);
ret = I2C_TRANSFER(_dev, msgv, msgs);
int ret = I2C_TRANSFER(_dev, msgv, msgs);
if (ret != OK)
up_i2creset(_dev);