updated transmission progress for TX

This commit is contained in:
DJ2LS 2021-09-11 09:41:37 +02:00 committed by GitHub
parent f52d0ea452
commit f0a392be16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -170,7 +170,8 @@ def calculate_transfer_rate():
# PERCENTAGE FOR TRANSMITTING
if static.TX_BUFFER_SIZE > 0:
static.ARQ_TRANSMISSION_PERCENT = int(arq_rx_n_current_arq_frame / static.TX_BUFFER_SIZE) * 100
print("static.ARQ_N_SENT_FRAMES: " + str(static.ARQ_N_SENT_FRAMES))
static.ARQ_TRANSMISSION_PERCENT = int((static.ARQ_N_SENT_FRAMES / static.TX_BUFFER_SIZE) * 100)
# PERCENTAGE FOR RECEIVING
elif arq_n_arq_frames_per_data_frame > 0: