Skip to content

Commit

Permalink
fix: set comm monitor so use the BytesReceived event
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Welker committed Jul 3, 2024
1 parent ec422ea commit 20d82eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SamsungMdc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ public void LinkToApi(BasicTriList trilist, uint joinStart, string joinMapKey, E
public override bool CustomActivate()
{
Communication.Connect();
CommunicationMonitor.StatusChange +=

(o, a) => Debug.Console(DebugLevelVerbose, this, "Communication monitor state: {0}", CommunicationMonitor.Status);
CommunicationMonitor.Start();
return true;
Expand Down Expand Up @@ -664,7 +664,7 @@ private void InitCommMonitor()
var pollInterval = _pollIntervalMs > 0 ? _pollIntervalMs : 30000;

CommunicationMonitor = new GenericCommunicationMonitor(this, Communication, pollInterval, 180000, 300000,
StatusGet);
StatusGet, true);

DeviceManager.AddDevice(CommunicationMonitor);

Expand Down

0 comments on commit 20d82eb

Please sign in to comment.