aboutsummaryrefslogtreecommitdiffstats
path: root/BSSMAP.st
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-11-20 01:22:53 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-11-20 01:34:41 +0100
commit4cb1daeed69ceff5b963cda5fec2292e78f12dd4 (patch)
tree35a8253fcce0b0437d0443ff26ee9869156d9be7 /BSSMAP.st
parentda055c7469b8903255cfe486cb2a9389540198af (diff)
BSSMAP: Pass the LU directly to the Layer3Info
No need to generate a message. We can directly pass this to the system and generate the data at the end with a toMessage.
Diffstat (limited to 'BSSMAP.st')
-rw-r--r--BSSMAP.st7
1 files changed, 5 insertions, 2 deletions
diff --git a/BSSMAP.st b/BSSMAP.st
index c8b4ae4..e645c68 100644
--- a/BSSMAP.st
+++ b/BSSMAP.st
@@ -91,9 +91,12 @@ GSM0808IE subclass: GSMLayer3Info [
]
writeOn: aMsg [
+ | dat |
<category: 'creation'>
aMsg putByte: self class elementId.
- aMsg putByte: data size.
- aMsg putByteArray: data.
+
+ dat := data toMessageOrByteArray.
+ aMsg putByte: dat size.
+ aMsg putByteArray: dat.
]
]