mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 12:06:58 +00:00
refactor: comment out debug logging for ComPort registration
This commit is contained in:
parent
32a332a6e2
commit
3ce282e2db
1 changed files with 28 additions and 28 deletions
|
|
@ -94,35 +94,35 @@ namespace PepperDash.Essentials.Core
|
|||
|
||||
|
||||
// TODO [ ] - Remove debug logging once verified working
|
||||
if (Port.Parent is CenIoCom102)
|
||||
{
|
||||
Port.PropertyChanged += (s, e) =>
|
||||
{
|
||||
this.LogInformation($@"RegisterAndConfigureComPort: PropertyChanged Fired >>
|
||||
comPort-'{Port.ID}',
|
||||
Property Changed-'{e.Property}',
|
||||
Value Changed-'{e.Value}',
|
||||
deviceName-'{Port.DeviceName}',
|
||||
parentDevice-'{Port.ParentDevice}',
|
||||
parent-`{Port.Parent}`,
|
||||
online-`{Port.IsOnline}`,
|
||||
present-`{Port.Present}`,
|
||||
supportedBaudRates-'{Port.SupportedBaudRates}'");
|
||||
};
|
||||
Port.ExtendedInformationChanged += (s, e) =>
|
||||
{
|
||||
// if (Port.Parent is CenIoCom102)
|
||||
// {
|
||||
// Port.PropertyChanged += (s, e) =>
|
||||
// {
|
||||
// this.LogInformation($@"RegisterAndConfigureComPort: PropertyChanged Fired >>
|
||||
// comPort-'{Port.ID}',
|
||||
// Property Changed-'{e.Property}',
|
||||
// Value Changed-'{e.Value}',
|
||||
// deviceName-'{Port.DeviceName}',
|
||||
// parentDevice-'{Port.ParentDevice}',
|
||||
// parent-`{Port.Parent}`,
|
||||
// online-`{Port.IsOnline}`,
|
||||
// present-`{Port.Present}`,
|
||||
// supportedBaudRates-'{Port.SupportedBaudRates}'");
|
||||
// };
|
||||
// Port.ExtendedInformationChanged += (s, e) =>
|
||||
// {
|
||||
|
||||
this.LogInformation($@"RegisterAndConfigureComPort: ExtendedInformationChanged Fired >>
|
||||
comPort-'{Port.ID}',
|
||||
{e.Protocol},
|
||||
{e.BaudRate},
|
||||
{e.Parity},
|
||||
{e.DataBits},
|
||||
{e.StopBits},
|
||||
HW Handshake-'{e.HardwareHandshakeSetting}',
|
||||
SW Handshake-'{e.SoftwareHandshakeSetting}'");
|
||||
};
|
||||
}
|
||||
// this.LogInformation($@"RegisterAndConfigureComPort: ExtendedInformationChanged Fired >>
|
||||
// comPort-'{Port.ID}',
|
||||
// {e.Protocol},
|
||||
// {e.BaudRate},
|
||||
// {e.Parity},
|
||||
// {e.DataBits},
|
||||
// {e.StopBits},
|
||||
// HW Handshake-'{e.HardwareHandshakeSetting}',
|
||||
// SW Handshake-'{e.SoftwareHandshakeSetting}'");
|
||||
// };
|
||||
// }
|
||||
|
||||
Port.SerialDataReceived += Port_SerialDataReceived;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue