diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-11-20 01:22:53 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-11-20 01:34:41 +0100 |
commit | 4cb1daeed69ceff5b963cda5fec2292e78f12dd4 (patch) | |
tree | 35a8253fcce0b0437d0443ff26ee9869156d9be7 /BSSMAP.st | |
parent | da055c7469b8903255cfe486cb2a9389540198af (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.st | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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. ] ] |