mirror of
https://github.com/esphome/esphome.git
synced 2024-11-22 11:47:30 +01:00
Fix typo in mpu6050.cpp (#5086)
This commit is contained in:
parent
6ecc1c14d2
commit
8a9352939a
@ -77,7 +77,7 @@ void MPU6050Component::setup() {
|
|||||||
accel_config &= 0b11100111;
|
accel_config &= 0b11100111;
|
||||||
accel_config |= (MPU6050_RANGE_2G << 3);
|
accel_config |= (MPU6050_RANGE_2G << 3);
|
||||||
ESP_LOGV(TAG, " Output accel_config: 0b" BYTE_TO_BINARY_PATTERN, BYTE_TO_BINARY(accel_config));
|
ESP_LOGV(TAG, " Output accel_config: 0b" BYTE_TO_BINARY_PATTERN, BYTE_TO_BINARY(accel_config));
|
||||||
if (!this->write_byte(MPU6050_REGISTER_GYRO_CONFIG, gyro_config)) {
|
if (!this->write_byte(MPU6050_REGISTER_ACCEL_CONFIG, accel_config)) {
|
||||||
this->mark_failed();
|
this->mark_failed();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user