Skip to content

Commit

Permalink
more black
Browse files Browse the repository at this point in the history
  • Loading branch information
CTho9305 committed Jan 4, 2025
1 parent 7fcada8 commit 380c58c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adafruit_mpu6050.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def __init__(self, i2c_bus: I2C, address: int = _MPU6050_DEFAULT_ADDRESS) -> Non
self._filter_bandwidth = Bandwidth.BAND_260_HZ
self._gyro_range = GyroRange.RANGE_500_DPS
self._accel_range = Range.RANGE_2_G
self._accel_scale = 1.0 / [16384,8192,4096,2048][self._accel_range]
self._accel_scale = 1.0 / [16384, 8192, 4096, 2048][self._accel_range]
sleep(0.100)
self.clock_source = (
ClockSource.CLKSEL_INTERNAL_X
Expand Down Expand Up @@ -349,7 +349,7 @@ def accelerometer_range(self, value: int) -> None:
if (value < 0) or (value > 3):
raise ValueError("accelerometer_range must be a Range")
self._accel_range = value
self._accel_scale = 1.0 / [16384,8192,4096,2048][value]
self._accel_scale = 1.0 / [16384, 8192, 4096, 2048][value]
sleep(0.01)

@property
Expand Down

0 comments on commit 380c58c

Please sign in to comment.