and another attempt fixing ctests

This commit is contained in:
DJ2LS 2023-04-01 10:23:39 +02:00
parent ddf0f09480
commit f9dad47c99

View file

@ -623,6 +623,9 @@ class RF:
txbuffer += bytes(mod_out_postamble)
# Add delay to end of frames
# for TESTMODE we need some additional delay for making ctests stable because of MKFIFO related problems
if TESTMODE:
repeat_delay = 100
samples_delay = int(self.MODEM_SAMPLE_RATE * (repeat_delay / 1000)) # type: ignore
mod_out_silence = ctypes.create_string_buffer(samples_delay * 2)
txbuffer += bytes(mod_out_silence)