Skip to content

Commit 1d6e3ab

Browse files
committed
fix: examples
1 parent ef9f4f8 commit 1d6e3ab

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

language/example/etherCAT/control.bcsctrl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,13 @@ control EtherCATController {
118118
}
119119
unit AdjustLightLevelByMode {
120120
switch (mode){
121-
case OperatingMode.COMFORT: {
121+
case OperatingMode.COMFORT {
122122
lightLevel = 100;
123123
}
124-
case OperatingMode.ECO: {
124+
case OperatingMode.ECO {
125125
lightLevel = 50;
126126
}
127-
default: {
127+
default {
128128
lightLevel = 0;
129129
}
130130
}

language/test/validating/files/invalid/invalid_control.bcsctrl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ control InvalidTestController {
99
heater = 5.5;
1010

1111
// Intentional type mismatch of sensor assign to local variable
12-
temp = windowContact;
12+
temp = WindowContact.value;
1313
}
1414
}

language/test/validating/files/invalid/invalid_hardware.bcshw

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ controller InvalidTestController {
3232
channels: 8
3333
}
3434

35-
datapoint windowContact {
35+
datapoint WindowContact {
3636
portgroup: DigitalInputs
3737
channels: {
3838
channel value: BOOL link "Channel 1^Input"

0 commit comments

Comments
 (0)