From 5b53934b5d0dfd3db8bccd1045f81196f1f0dd9c Mon Sep 17 00:00:00 2001 From: Sebastien Dudek Date: Sat, 4 Jun 2022 01:07:01 +0200 Subject: [PATCH 1/2] Fixing an issues with the number of returned items of a SAHARA connection --- README.md | 1 + edl | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e353620..cd73782 100755 --- a/README.md +++ b/README.md @@ -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. diff --git a/edl b/edl index 75a595b..0393078 100755 --- a/edl +++ b/edl @@ -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(): From 5fa4c469b39b95462cf38a363006a18dc6762b01 Mon Sep 17 00:00:00 2001 From: Sebastien Dudek Date: Mon, 6 Jun 2022 10:21:38 +0200 Subject: [PATCH 2/2] Fixing dirty fix --- edl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/edl b/edl index 0393078..30ee02d 100755 --- a/edl +++ b/edl @@ -312,9 +312,9 @@ class main(metaclass=LogBase): if sahara_info: sahara_connnect = self.sahara.connect() if len(sahara_connnect) == 3: - mode, cmd, resp = self.sahara.connect() + mode, cmd, resp = sahara_connnect else: - mode, resp = self.sahara.connect() + mode, resp = sahara_connnect if mode == "sahara": mode = self.sahara.upload_loader() if "enprg" in self.sahara.programmer.lower():