Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gsm alphabet, 7bit message concatenation #3

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
bug fix
alexislg2 committed Sep 10, 2014
commit 7e80bb94017a15c6aba220d49d992c26e9451f0f
3 changes: 1 addition & 2 deletions pdu.js
Original file line number Diff line number Diff line change
@@ -245,7 +245,6 @@ String.prototype.GSMCodeAt = function(i) //sp
//TODO: TP-Validity-Period (Delivery)
pduParser.generate = function(message) {
var pdu = '00';

var parts = 1;
if(message.encoding === '16bit' && message.text.length > 70)
parts = message.text.length / 66;
@@ -325,7 +324,7 @@ pduParser.generate = function(message) {
}
else {
user_data = pduParser.encode7Bit(text);
var size = user_data.length / 2;
var size = text.length;
}
}