Skip to content
Permalink
Browse files

Fixed reading.

  • Loading branch information...
LegacyNsfw committed Feb 14, 2019
1 parent 6b79b67 commit 5557d32e17c61e7b5db06d8c6fb3818c7d9e577b
Showing with 11 additions and 1 deletion.
  1. +1 −1 Apps/PcmLibrary/CKernelReader.cs
  2. +10 −0 Apps/PcmLibrary/Vehicle.cs
@@ -97,7 +97,7 @@ public async Task<Response<Stream>> ReadContents(PcmInfo info, CancellationToken
}

// The read kernel needs a short message here for reasons unknown. Without it, it will RX 2 messages then drop one.
await this.vehicle.SendToolPresentNotification();
await this.vehicle.ForceSendToolPresentNotification();

if (startAddress + blockSize > endAddress)
{
@@ -143,6 +143,16 @@ public async Task SendToolPresentNotification()
await this.notifier.Notify();
}

/// <summary>
/// Send a tool-present notfication. (Or not, depending on how much
/// time has passed since the last notificationw was sent.)
/// </summary>
/// <returns></returns>
public async Task ForceSendToolPresentNotification()
{
await this.notifier.ForceNotify();
}

/// <summary>
/// Change the device's timeout.
/// </summary>

0 comments on commit 5557d32

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.