Fixing an issues with the number of returned items of a SAHARA connection

This commit is contained in:
Sebastien Dudek 2022-06-04 01:07:01 +02:00
parent 3094ae2ed9
commit 5b53934b5d
2 changed files with 6 additions and 1 deletions

View file

@ -241,6 +241,7 @@ For Oneplus 6T, enter *#801#* on dialpad, set Engineer Mode and Serial to on and
## Tested with
- Oneplus 3T/5/6T/7T/8/8t/9/Nord CE/N10/N100 (Read-Only), BQ X, BQ X5, BQ X2, Gigaset ME Pure, ZTE MF210, ZTE MF920V, Sierra Wireless EM7455, Netgear MR1100-10EUS, Netgear MR5100
- SIMCOM SIM8905E
Published under MIT license
Additional license limitations: No use in commercial products without prior permit.

6
edl
View file

@ -310,7 +310,11 @@ class main(metaclass=LogBase):
self.cdc.timeout = None
sahara_info = self.sahara.streaminginfo()
if sahara_info:
mode, resp = self.sahara.connect()
sahara_connnect = self.sahara.connect()
if len(sahara_connnect) == 3:
mode, cmd, resp = self.sahara.connect()
else:
mode, resp = self.sahara.connect()
if mode == "sahara":
mode = self.sahara.upload_loader()
if "enprg" in self.sahara.programmer.lower():