mobile: ms->shutdown was not converted properly to enum

ms->shutdown is ms->shutdown != 0 which should have been
converted to ms->shutdown != MS_SHUTDOWN_NONE. This is fixing
sending SMS.

This was introduced in Iee1140e4848923c7270495c381bf87b7e3fddee1.

Change-Id: Ia74374dd9c0dd0ba9cf5725d66f4d2f2a2cfe9ef
This commit is contained in:
Holger Hans Peter Freyther 2017-11-29 19:38:01 +08:00
parent 517bda18b2
commit d27d4354c3
1 changed files with 1 additions and 1 deletions

View File

@ -632,7 +632,7 @@ static int gsm411_tx_sms_submit(struct osmocom_ms *ms, const char *sms_sca,
LOGP(DLSMS, LOGL_INFO, "..._sms_submit()\n");
/* no running, no transaction */
if (!ms->started || ms->shutdown != MS_SHUTDOWN_COMPL) {
if (!ms->started || ms->shutdown != MS_SHUTDOWN_NONE) {
LOGP(DLSMS, LOGL_ERROR, "Phone is down\n");
gsm411_sms_report(ms, sms, GSM411_RP_CAUSE_MO_TEMP_FAIL);
sms_free(sms);