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.
This commit is contained in:
Pičugins Arsenijs 2019-02-04 22:16:54 +02:00 committed by Denis Kenzior
parent 5e173b28d0
commit 1b0adea8dd
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}