Skip to content

Commit

Permalink
Fix concat header for UCS2
Browse files Browse the repository at this point in the history
  • Loading branch information
BOOMER74 committed Dec 22, 2013
1 parent e0bdd19 commit 814fb3b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gsmmodem/pdu.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,10 @@ def encodeSmsSubmitPdu(number, text, reference=0, validity=None, smsc=None, requ
if concatHeaderPrototype != None:
concatHeader = copy(concatHeaderPrototype)
concatHeader.number = i + 1
pduText = text[i*153:(i+1) * 153]
if alphabet == 0x00:
pduText = text[i*153:(i+1) * 153]
elif alphabet == 0x08:
pduText = text[i * 67 : (i + 1) * 67]
udh.extend(concatHeader.encode())
else:
pduText = text
Expand Down

0 comments on commit 814fb3b

Please sign in to comment.