increased channel busy counter

This commit is contained in:
DJ2LS 2022-11-17 22:41:46 +01:00
parent 503fa52696
commit ce32d589ab

View file

@ -913,9 +913,9 @@ class RF:
# so we have a smoother state toggle
if np.sum(dfft[dfft > avg + 10]) >= 300 and not static.TRANSMITTING:
static.CHANNEL_BUSY = True
# Limit delay counter to a maximun of 50. The higher this value,
# Limit delay counter to a maximum of 50. The higher this value,
# the longer we will wait until releasing state
channel_busy_delay = min(channel_busy_delay + 5, 50)
channel_busy_delay = min(channel_busy_delay + 5, 150)
else:
# Decrement channel busy counter if no signal has been detected.
channel_busy_delay = max(channel_busy_delay - 1, 0)