Skip to contentSkip to conversation

sim800: fix typo in model check code

PATCH Applied CRImier 2 participants 2 messages Feb 4, 2019 – Feb 8, 2019

lore
Share & tools
lore

CRImier

author
#0 lore raw

PATCH 1/1 sim800: fix typo in model check code

Fixing a copy-paste error in SIM800 code
that results in a SIM900 modem being
detected as a SIM800 modem.

---
 plugins/sim900.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
plugins/sim900.c +1 -1
index eeeb248f..256483ea 100644
@@ -115,7 +115,7 @@ static void check_model(gboolean ok, GAtResult *result, gpointer user_data)
 		if (strstr(model, "SIM800"))
 			data->modem_type = SIM800;
 		else if (strstr(model, "SIM900"))
-			data->modem_type = SIM800;
+			data->modem_type = SIM900;
 		else
 			data->modem_type = SIMCOM_UNKNOWN;
 	}
Signature · 1 line
2.11.0
#1 lore raw
Quoted 7 lines · CRImier

Fixing a copy-paste error in SIM800 code
that results in a SIM900 modem being
detected as a SIM800 modem.

---
  plugins/sim900.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks.

Regards,
-Denis