mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-10 18:11:35 +08:00
Replacing usleep with px4_usleep
This is a step towards isolating time from the system.
This commit is contained in:
@@ -79,7 +79,7 @@ int do_esc_calibration(orb_advert_t *mavlink_log_pub, struct actuator_armed_s *a
|
||||
break;
|
||||
|
||||
} else {
|
||||
usleep(50000);
|
||||
px4_usleep(50000);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -188,7 +188,7 @@ int do_esc_calibration(orb_advert_t *mavlink_log_pub, struct actuator_armed_s *a
|
||||
}
|
||||
}
|
||||
|
||||
usleep(50_ms);
|
||||
px4_usleep(50_ms);
|
||||
}
|
||||
|
||||
Out:
|
||||
|
||||
Reference in New Issue
Block a user