[CI] Add artificial delay to unit test emulated SPI

This commit is contained in:
jgromes 2025-01-19 21:46:00 +01:00
parent 3e146c891e
commit c4ac0ac68b

View file

@ -196,7 +196,12 @@ class TestHal : public RadioLibHal {
// process the SPI byte
in[i] = this->radio->HandleSPI(out[i]);
// outpu debug
// artificial delay to emulate SPI running at a finite speed
// this is added because timeouts are based on time duration,
// so we need to make sure some time actually elapses
this->delayMicroseconds(100);
// output debug
HAL_LOG(fmt::format("out={:#02x}, in={:#02x}", out[i], in[i]));
}
}