Replacing usleep with px4_usleep

This is a step towards isolating time from the system.
This commit is contained in:
Julian Oes
2018-12-22 10:32:18 +01:00
parent e485885344
commit 5b9dea5604
112 changed files with 339 additions and 305 deletions
@@ -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];