Skip to content

Commit

Permalink
missing await
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Nov 6, 2023
1 parent 7129d81 commit 3b8132b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/drivers/src/accelerometer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,8 @@ export async function startIMU(
driver: AccelerometerDriver & GyroscopeDriver,
options: AccelerometerOptions & GyroscopeOptions & SensorServerOptions
) {
const accelerometer = startAccelerometer(driver, options)
const gyroscope = startGyroscope(driver, options)
const accelerometer = await startAccelerometer(driver, options)
const gyroscope = await startGyroscope(driver, options)

return { accelerometer, gyroscope }
}

0 comments on commit 3b8132b

Please sign in to comment.