Skip to content

Commit 6a330e8

Browse files
authored
[Bridge-App] Fix init typo for TempSensor2 (#33619)
1 parent a98dc79 commit 6a330e8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

examples/bridge-app/linux/main.cpp

+1-5
Original file line numberDiff line numberDiff line change
@@ -899,13 +899,11 @@ void ApplicationInit()
899899
// Setup Mock Devices
900900
Light1.SetReachable(true);
901901
Light2.SetReachable(true);
902-
903902
Light1.SetChangeCallback(&HandleDeviceOnOffStatusChanged);
904903
Light2.SetChangeCallback(&HandleDeviceOnOffStatusChanged);
905904

906905
TempSensor1.SetReachable(true);
907-
TempSensor1.SetReachable(true);
908-
906+
TempSensor2.SetReachable(true);
909907
TempSensor1.SetChangeCallback(&HandleDeviceTempSensorStatusChanged);
910908
TempSensor2.SetChangeCallback(&HandleDeviceTempSensorStatusChanged);
911909

@@ -914,7 +912,6 @@ void ApplicationInit()
914912
ActionLight2.SetReachable(true);
915913
ActionLight3.SetReachable(true);
916914
ActionLight4.SetReachable(true);
917-
918915
ActionLight1.SetChangeCallback(&HandleDeviceOnOffStatusChanged);
919916
ActionLight2.SetChangeCallback(&HandleDeviceOnOffStatusChanged);
920917
ActionLight3.SetChangeCallback(&HandleDeviceOnOffStatusChanged);
@@ -929,7 +926,6 @@ void ApplicationInit()
929926
ComposedTempSensor2.SetReachable(true);
930927
ComposedPowerSource.SetReachable(true);
931928
ComposedPowerSource.SetBatChargeLevel(58);
932-
933929
ComposedTempSensor1.SetChangeCallback(&HandleDeviceTempSensorStatusChanged);
934930
ComposedTempSensor2.SetChangeCallback(&HandleDeviceTempSensorStatusChanged);
935931
ComposedPowerSource.SetChangeCallback(&HandleDevicePowerSourceStatusChanged);

0 commit comments

Comments
 (0)