kopia lustrzana https://github.com/PiInTheSky/lora-gateway
Fix to SSDV uplink script
rodzic
37200371af
commit
d07b34ba60
|
@ -28,7 +28,9 @@ def get_list_of_missing_packets(PayloadID, Minutes):
|
||||||
# only interested in latest 2 images
|
# only interested in latest 2 images
|
||||||
if index >= (len(j) - 2):
|
if index >= (len(j) - 2):
|
||||||
# only interested in images that have missing packets
|
# 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['id'], item['image_id'], len(item['missing_packets']))
|
||||||
print(item['missing_packets'])
|
print(item['missing_packets'])
|
||||||
# pl = item['packets']
|
# pl = item['packets']
|
||||||
|
|
Ładowanie…
Reference in New Issue