remove un-unsed variables.

Getting rid of some compiler warnings.
pull/637/head
Rohit Grover 2014-11-03 08:53:16 +00:00
parent 261455bba2
commit fa0a82d695
1 changed files with 0 additions and 3 deletions

View File

@ -59,9 +59,6 @@ int i2c1_inited = 0;
int i2c2_inited = 0;
void i2c_init(i2c_t *obj, PinName sda, PinName scl) {
int timeout;
I2C_TypeDef *i2c = (I2C_TypeDef *)(obj->i2c);
// Determine the I2C to use
I2CName i2c_sda = (I2CName)pinmap_peripheral(sda, PinMap_I2C_SDA);
I2CName i2c_scl = (I2CName)pinmap_peripheral(scl, PinMap_I2C_SCL);