Skip to content

Commit

Permalink
eliminate warning
Browse files Browse the repository at this point in the history
  • Loading branch information
habazut committed Jan 20, 2024
1 parent 99a09c7 commit 9728d19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion I2CManager_STM32.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ void I2CManagerClass::I2C_setClock(uint32_t i2cClockSpeed) {
// Calculate a rise time appropriate to the requested bus speed
// Use 10x the rise time spec to enable integer divide of 50ns clock period
uint16_t t_rise;
uint32_t ccr_freq;
//uint32_t ccr_freq;

while (s->CR1 & I2C_CR1_STOP); // Prevents lockup by guarding further
// writes to CR1 while STOP is being executed!
Expand Down

0 comments on commit 9728d19

Please sign in to comment.