From d07b34ba606a3b9320b0bdd1a2f228903211b0cd Mon Sep 17 00:00:00 2001 From: Dave Akerman Date: Fri, 30 Nov 2018 09:44:34 +0000 Subject: [PATCH] Fix to SSDV uplink script --- ssdv_resend.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ssdv_resend.py b/ssdv_resend.py index c3a4317..25962be 100644 --- a/ssdv_resend.py +++ b/ssdv_resend.py @@ -28,7 +28,9 @@ def get_list_of_missing_packets(PayloadID, Minutes): # only interested in latest 2 images if index >= (len(j) - 2): # only interested in images that have missing packets - if len(item['missing_packets']) > 0: + # if len(item['missing_packets']) > 0: + # only interested in images that have missing packets or which are yet to be completed + if len(item['missing_packets']) > 0 or (not item['received_eoi']): print(item['id'], item['image_id'], len(item['missing_packets'])) print(item['missing_packets']) # pl = item['packets']