mirror of
https://github.com/arendst/Tasmota.git
synced 2026-02-20 00:32:32 +01:00
replace break with continue in MPU_6050Detect() (#23956)
This commit is contained in:
@@ -121,7 +121,7 @@ void MPU_6050Detect(void)
|
||||
for (uint32_t i = 0; i < sizeof(MPU_6050_addresses); i++)
|
||||
{
|
||||
MPU_6050_address = MPU_6050_addresses[i];
|
||||
if (!I2cSetDevice(MPU_6050_address)) { break; }
|
||||
if (!I2cSetDevice(MPU_6050_address)) { continue; }
|
||||
mpu6050.setAddr(MPU_6050_addresses[i]);
|
||||
|
||||
#ifdef USE_MPU6050_DMP
|
||||
|
||||
Reference in New Issue
Block a user