diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2013-01-07 12:46:08 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2013-01-07 12:46:08 +0100 |
commit | e86cfabb08e6f51f3a4320baa5d3d8290ea02384 (patch) | |
tree | 011d141587791f13791a50ca9648fdc00fb275d0 | |
parent | ef362d2b2398425940f931d7b36a9f5fc7f749b3 (diff) |
gsm: Write out conditionals if they are set. This is still incomplete
Conditionals are still not very well defined but if they are available
we will use them. This will make the cm3 be written out if it is set.
-rw-r--r-- | GSM48.st | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -2100,7 +2100,14 @@ Osmo.TLVParserBase subclass: GSM48MSG [ ]. ]. - "TODO: Handle the Conditionals too" + "TODO: Handle the Conditionals better here.." + each isConditional ifTrue: [ | tmp | + "Only write if it is already present" + tmp := self instVarNamed: each instVarName. + tmp ifNotNil: [ + tmp writeOn: aMsg. + ]. + ]. ] ] |