Skip to content

Commit 8c064ac

Browse files
committed
lfc: hot fix remove init option from clock_sync
1 parent 35c0b68 commit 8c064ac

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

lfc/core/src/main/kotlin/org/lflang/generator/uc/attribute/UcClockSyncMainAttribute.kt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@ import org.lflang.lf.*
55

66
data object UcClockSyncMainState {
77
const val OFF = 1
8-
const val INIT = 2
9-
const val ON = 3
8+
const val ON = 2
109
}
1110

12-
class UcClockSyncMainAttribute(var state: Int = UcClockSyncMainState.INIT) {
11+
class UcClockSyncMainAttribute(var state: Int = UcClockSyncMainState.OFF) {
1312
// Secondary constructor that initializes the data class from an Attribute object
1413
constructor(inst: Reactor) : this() {
1514
state = getStateFromReactor(inst)
@@ -19,8 +18,7 @@ class UcClockSyncMainAttribute(var state: Int = UcClockSyncMainState.INIT) {
1918
return when (AttributeUtils.getClockSyncAttrValue(inst)) {
2019
"off" -> UcClockSyncMainState.OFF
2120
"on" -> UcClockSyncMainState.ON
22-
"init" -> UcClockSyncMainState.INIT
23-
else -> UcClockSyncMainState.INIT
21+
else -> UcClockSyncMainState.OFF
2422
}
2523
}
2624

0 commit comments

Comments
 (0)