Skip to content

Commit

Permalink
[Bridge-App] Fix init typo for TempSensor2
Browse files Browse the repository at this point in the history
  • Loading branch information
yufengwangca committed May 27, 2024
1 parent 6aee3fd commit de892d0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions examples/bridge-app/linux/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -899,13 +899,11 @@ void ApplicationInit()
// Setup Mock Devices
Light1.SetReachable(true);
Light2.SetReachable(true);

Light1.SetChangeCallback(&HandleDeviceOnOffStatusChanged);
Light2.SetChangeCallback(&HandleDeviceOnOffStatusChanged);

TempSensor1.SetReachable(true);
TempSensor1.SetReachable(true);

TempSensor2.SetReachable(true);
TempSensor1.SetChangeCallback(&HandleDeviceTempSensorStatusChanged);
TempSensor2.SetChangeCallback(&HandleDeviceTempSensorStatusChanged);

Expand All @@ -914,7 +912,6 @@ void ApplicationInit()
ActionLight2.SetReachable(true);
ActionLight3.SetReachable(true);
ActionLight4.SetReachable(true);

ActionLight1.SetChangeCallback(&HandleDeviceOnOffStatusChanged);
ActionLight2.SetChangeCallback(&HandleDeviceOnOffStatusChanged);
ActionLight3.SetChangeCallback(&HandleDeviceOnOffStatusChanged);
Expand All @@ -929,7 +926,6 @@ void ApplicationInit()
ComposedTempSensor2.SetReachable(true);
ComposedPowerSource.SetReachable(true);
ComposedPowerSource.SetBatChargeLevel(58);

ComposedTempSensor1.SetChangeCallback(&HandleDeviceTempSensorStatusChanged);
ComposedTempSensor2.SetChangeCallback(&HandleDeviceTempSensorStatusChanged);
ComposedPowerSource.SetChangeCallback(&HandleDevicePowerSourceStatusChanged);
Expand Down

0 comments on commit de892d0

Please sign in to comment.