mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-01 12:41:35 +08:00
Replacing usleep with px4_usleep
This is a step towards isolating time from the system.
This commit is contained in:
@@ -70,7 +70,7 @@ SDP3X::init_sdp3x()
|
||||
}
|
||||
|
||||
// wait until sensor is ready
|
||||
usleep(20000);
|
||||
px4_usleep(20000);
|
||||
|
||||
// step 2 - configure
|
||||
ret = write_command(SDP3X_CONT_MEAS_AVG_MODE);
|
||||
@@ -81,7 +81,7 @@ SDP3X::init_sdp3x()
|
||||
return false;
|
||||
}
|
||||
|
||||
usleep(10000);
|
||||
px4_usleep(10000);
|
||||
|
||||
// step 3 - get scale
|
||||
uint8_t val[9];
|
||||
|
||||
Reference in New Issue
Block a user