Skip to content

Commit eb149df

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

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

lfc/bin/lfc-dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/run/current-system/sw/bin/bash
22

33
#============================================================================
44
# Description: Build and run the Lingua Franca compiler (lfc).

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.ON) {
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.ON
2422
}
2523
}
2624

0 commit comments

Comments
 (0)