mirror of https://github.com/ArduPilot/ardupilot
HAL_SITL: added "Waiting for" message
this is needed for test.CAN autotest as it waits for periph startup
This commit is contained in:
parent
6d81f34db8
commit
b76e2342db
|
@ -202,6 +202,9 @@ void SimMCast::multicast_read(void)
|
|||
if (_sitl == nullptr) {
|
||||
return;
|
||||
}
|
||||
if (_sitl->state.timestamp_us == 0) {
|
||||
printf("Waiting for multicast state\n");
|
||||
}
|
||||
struct SITL::sitl_fdm state;
|
||||
if (recv(mc_fd, (void*)&state, sizeof(state), MSG_WAITALL) == sizeof(state)) {
|
||||
if (state.timestamp_us < _sitl->state.timestamp_us) {
|
||||
|
|
Loading…
Reference in New Issue