File tree Expand file tree Collapse file tree
core/src/main/kotlin/org/lflang/generator/uc/attribute Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- #! /bin/bash
1+ #! /run/current-system/sw/ bin/bash
22
33# ============================================================================
44# Description: Build and run the Lingua Franca compiler (lfc).
Original file line number Diff line number Diff line change @@ -5,11 +5,10 @@ import org.lflang.lf.*
55
66data 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
You can’t perform that action at this time.
0 commit comments