mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
increased channel busy counter
This commit is contained in:
parent
503fa52696
commit
ce32d589ab
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue