smalltalk
/
osmo-st-gsm
Archived
1
0
Fork 0

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.
This commit is contained in:
Holger Hans Peter Freyther 2013-01-07 12:46:08 +01:00
parent ef362d2b23
commit e86cfabb08
1 changed files with 8 additions and 1 deletions

View File

@ -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.
].
].
]
]