aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2013-01-07 12:46:08 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2013-01-07 12:46:08 +0100
commite86cfabb08e6f51f3a4320baa5d3d8290ea02384 (patch)
tree011d141587791f13791a50ca9648fdc00fb275d0
parentef362d2b2398425940f931d7b36a9f5fc7f749b3 (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.st9
1 files changed, 8 insertions, 1 deletions
diff --git a/GSM48.st b/GSM48.st
index 55338b6..f3e2c15 100644
--- a/GSM48.st
+++ b/GSM48.st
@@ -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.
+ ].
+ ].
]
]