Skip to content

Commit

Permalink
[I2C] Fix unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalentity committed Nov 7, 2020
1 parent 51152db commit b6026d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/drivers/bus_i2c_hal.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ static void i2cClockComputeRaw(uint32_t pclkFreq, int i2cFreqKhz, int presc, int

// Silicon specific values, from datasheet
uint8_t tAFmin; // Analog filter delay (min)
uint8_t tAFmax; // Analog filter delay (max)
//uint8_t tAFmax; // Analog filter delay (max)

// Actual (estimated) values
uint16_t tr = 100; // Raise time
Expand All @@ -253,7 +253,7 @@ static void i2cClockComputeRaw(uint32_t pclkFreq, int i2cFreqKhz, int presc, int
}

tAFmin = 50;
tAFmax = 90;
//tAFmax = 90; // Unused

// Convert pclkFreq into nsec
float tI2cclk = 1000000000.0f / pclkFreq;
Expand Down

0 comments on commit b6026d4

Please sign in to comment.