diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2017-11-29 19:38:01 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2017-11-30 17:03:25 +0800 |
commit | d27d4354c37fbce910869465e60bc226efc6e6f3 (patch) | |
tree | 596d9f9acf395fd9f8308534bac6696f8ab34f22 /src | |
parent | 517bda18b21b5127edb92ef79119c885c3b2cd67 (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/host/layer23/src/mobile/gsm411_sms.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/host/layer23/src/mobile/gsm411_sms.c b/src/host/layer23/src/mobile/gsm411_sms.c index 73fad84f..f09d7a13 100644 --- a/src/host/layer23/src/mobile/gsm411_sms.c +++ b/src/host/layer23/src/mobile/gsm411_sms.c @@ -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); |