mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 12:06:58 +00:00
fix: set partition state to match physical partitions when changing from manual to auto mode
This commit is contained in:
parent
bc217a2008
commit
b63996b9e6
1 changed files with 4 additions and 0 deletions
|
|
@ -104,6 +104,7 @@ namespace PepperDash.Essentials.Core
|
||||||
{
|
{
|
||||||
_partitionSensor.PartitionPresentFeedback.OutputChange -= PartitionPresentFeedback_OutputChange;
|
_partitionSensor.PartitionPresentFeedback.OutputChange -= PartitionPresentFeedback_OutputChange;
|
||||||
_partitionSensor.PartitionPresentFeedback.OutputChange += PartitionPresentFeedback_OutputChange;
|
_partitionSensor.PartitionPresentFeedback.OutputChange += PartitionPresentFeedback_OutputChange;
|
||||||
|
PartitionPresent = _partitionSensor.PartitionPresentFeedback.BoolValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
PartitionPresentFeedback.FireUpdate();
|
PartitionPresentFeedback.FireUpdate();
|
||||||
|
|
@ -126,6 +127,7 @@ namespace PepperDash.Essentials.Core
|
||||||
if (_partitionSensor != null)
|
if (_partitionSensor != null)
|
||||||
{
|
{
|
||||||
_partitionSensor.PartitionPresentFeedback.OutputChange -= PartitionPresentFeedback_OutputChange;
|
_partitionSensor.PartitionPresentFeedback.OutputChange -= PartitionPresentFeedback_OutputChange;
|
||||||
|
PartitionPresent = _partitionSensor.PartitionPresentFeedback.BoolValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
PartitionPresentFeedback.FireUpdate();
|
PartitionPresentFeedback.FireUpdate();
|
||||||
|
|
@ -137,6 +139,7 @@ namespace PepperDash.Essentials.Core
|
||||||
if (!IsInAutoMode)
|
if (!IsInAutoMode)
|
||||||
{
|
{
|
||||||
PartitionPresent = true;
|
PartitionPresent = true;
|
||||||
|
PartitionPresentFeedback.FireUpdate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -145,6 +148,7 @@ namespace PepperDash.Essentials.Core
|
||||||
if (!IsInAutoMode)
|
if (!IsInAutoMode)
|
||||||
{
|
{
|
||||||
PartitionPresent = false;
|
PartitionPresent = false;
|
||||||
|
PartitionPresentFeedback.FireUpdate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue