Diffstat (limited to 'gammu/emb/common/phone/pfunc.c') (more/less context) (ignore whitespace changes)
-rw-r--r-- | gammu/emb/common/phone/pfunc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gammu/emb/common/phone/pfunc.c b/gammu/emb/common/phone/pfunc.c index a03a81d..fe890fc 100644 --- a/gammu/emb/common/phone/pfunc.c +++ b/gammu/emb/common/phone/pfunc.c | |||
@@ -58,12 +58,13 @@ GSM_Error PHONE_EncodeSMSFrame(GSM_StateMachine *s, GSM_SMSMessage *SMS, unsigne | |||
58 | error = s->Phone.Functions->GetSMSC(s, &SMS->SMSC); | 58 | error = s->Phone.Functions->GetSMSC(s, &SMS->SMSC); |
59 | if (error != ERR_NONE) return error; | 59 | if (error != ERR_NONE) return error; |
60 | SMS->SMSC.Location = 0; | 60 | SMS->SMSC.Location = 0; |
61 | } | 61 | } |
62 | if (SMS->PDU == SMS_Deliver) { | 62 | if (SMS->PDU == SMS_Deliver) { |
63 | if (SMS->SMSC.Number[0] == 0x00 && SMS->SMSC.Number[1] == 0x00) { | 63 | if (SMS->SMSC.Number[0] == 0x00 && SMS->SMSC.Number[1] == 0x00) { |
64 | smprintf(s,"No SMSC in SMS Deliver\n"); | ||
64 | return ERR_EMPTYSMSC; | 65 | return ERR_EMPTYSMSC; |
65 | } | 66 | } |
66 | } | 67 | } |
67 | return GSM_EncodeSMSFrame(SMS, buffer, Layout, length, clear); | 68 | return GSM_EncodeSMSFrame(SMS, buffer, Layout, length, clear); |
68 | } | 69 | } |
69 | 70 | ||