mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 12:06:58 +00:00
Adds debug statements to compare values between Endpoint.IsOnline and EndpointOnlineFeedback
This commit is contained in:
parent
2173116664
commit
9c0440e8f0
2 changed files with 6 additions and 6 deletions
|
|
@ -458,9 +458,8 @@ namespace PepperDash.Essentials.DM {
|
|||
}
|
||||
///
|
||||
/// </summary>
|
||||
void Chassis_DMOutputChange(Switch device, DMOutputEventArgs args) {
|
||||
|
||||
//This should be a switch case JTA 2018-07-02
|
||||
void Chassis_DMOutputChange(Switch device, DMOutputEventArgs args)
|
||||
{
|
||||
var output = args.Number;
|
||||
|
||||
switch (args.EventId) {
|
||||
|
|
@ -471,7 +470,10 @@ namespace PepperDash.Essentials.DM {
|
|||
break;
|
||||
}
|
||||
case DMOutputEventIds.EndpointOnlineEventId: {
|
||||
Debug.Console(2, this, "Output {0} DMOutputEventIds.EndpointOnlineEventId fired. State: {1}", args.Number, Chassis.Outputs[output].EndpointOnlineFeedback);
|
||||
Debug.Console(2, this, "Output {0} DMOutputEventIds.EndpointOnlineEventId fired. EndpointOnlineFeedback State: {1}", args.Number, Chassis.Outputs[output].EndpointOnlineFeedback);
|
||||
if(Chassis.Outputs[output].Endpoint != null)
|
||||
Debug.Console(2, this, "Output {0} DMOutputEventIds.EndpointOnlineEventId fired. Endpoint.IsOnline State: {1}", args.Number, Chassis.Outputs[output].Endpoint.IsOnline);
|
||||
|
||||
OutputEndpointOnlineFeedbacks[output].FireUpdate();
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -767,8 +767,6 @@ namespace PepperDash.Essentials.DM
|
|||
/// </summary>
|
||||
void Chassis_DMOutputChange(Switch device, DMOutputEventArgs args)
|
||||
{
|
||||
|
||||
//This should be a switch case JTA 2018-07-02
|
||||
var output = args.Number;
|
||||
|
||||
switch (args.EventId)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue