HAL_SITL: added "Waiting for" message

this is needed for test.CAN autotest as it waits for periph startup
This commit is contained in:
Andrew Tridgell 2023-08-19 11:03:34 +10:00 committed by Peter Barker
parent 6d81f34db8
commit b76e2342db
1 changed files with 3 additions and 0 deletions

View File

@ -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) {