Merge pull request #290 from FlUxIuS/master

Fixing an issues with the number of returned items of a SAHARA connection
This commit is contained in:
Bjoern Kerler 2022-06-10 18:20:25 +02:00 committed by GitHub
commit 8189b47c97
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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 ## 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 - 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 Published under MIT license
Additional license limitations: No use in commercial products without prior permit. 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 self.cdc.timeout = None
sahara_info = self.sahara.streaminginfo() sahara_info = self.sahara.streaminginfo()
if sahara_info: if sahara_info:
mode, resp = self.sahara.connect() sahara_connnect = self.sahara.connect()
if len(sahara_connnect) == 3:
mode, cmd, resp = sahara_connnect
else:
mode, resp = sahara_connnect
if mode == "sahara": if mode == "sahara":
mode = self.sahara.upload_loader() mode = self.sahara.upload_loader()
if "enprg" in self.sahara.programmer.lower(): if "enprg" in self.sahara.programmer.lower():