aboutsummaryrefslogtreecommitdiffstats
path: root/Messages.st
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-11-27 14:05:28 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-11-27 14:05:28 +0100
commit892d4d19ab274008b48bbbaa066fed6c2a7337c1 (patch)
tree41229041f989d31ba080d832d581fcbded9d2891 /Messages.st
parenta57c26261c051a3211887b8bbb9a640182090366 (diff)
Messages: Introduce a ChosenChannel IE, the first TV
Make GSM0808IE>>#length: return the length of the payload including the length field if it is present. This is done to be able to support a Tag only IE in the future.
Diffstat (limited to 'Messages.st')
-rw-r--r--Messages.st4
1 files changed, 2 insertions, 2 deletions
diff --git a/Messages.st b/Messages.st
index 37e09c3..906763f 100644
--- a/Messages.st
+++ b/Messages.st
@@ -41,9 +41,9 @@ Object subclass: IEMessage [
ifTrue: [
| enc size |
size := each length: data.
- enc := data copyFrom: 1 to: 2 + size.
+ enc := data copyFrom: 1 to: 1 + size.
aMsg addIe: (each parseFrom: enc).
- ^ 2 + size
+ ^ 1 + size
].
].