Skip to content

Commit 470e4c5

Browse files
committed
Fix address typing
1 parent c56856e commit 470e4c5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

deploy/src/mpu6000.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,11 @@ function MPU6000(device::I2C.I2CDevice)
175175
end
176176

177177
"""
178-
MPU6000(bus::Int, address::Int=0x68)
178+
MPU6000(bus::Int, address::Integer=0x68)
179179
180180
Create an MPU6000 instance by opening an I2C connection.
181181
"""
182-
function MPU6000(bus::Int, address::Int=0x68)
182+
function MPU6000(bus::Int, address::Integer=0x68)
183183
device = I2C.open_device(bus, address)
184184
return MPU6000(device, GYRO_FS_250, ACCEL_FS_2G, zeros(UInt8, 14))
185185
end

0 commit comments

Comments
 (0)