Skip to content

Commit

Permalink
Fix initialization of Expires in WP Request (#302)
Browse files Browse the repository at this point in the history
  • Loading branch information
edleno2 committed May 8, 2021
1 parent b48ed26 commit c626bd6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ private bool CheckValidNanoFrameworkSerialDevice(NanoDevice<NanoSerialDevice> de
}
}
}
catch
catch (Exception /* ex */) // we could eat simple programming errors here - like a bad cast or other problem when changing code
{
// "catch all" required because the device open & check calls might fail for a number of reasons
// if there is a deviceID, remove it from cache, just in case
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1388,7 +1388,7 @@ internal WireProtocolRequest AsyncRequest(OutgoingMessage message, int timeout)

#region Commands implementation

private List<Commands.Monitor_MemoryMap.Range> GetMemoryMap()
public List<Commands.Monitor_MemoryMap.Range> GetMemoryMap()
{
Commands.Monitor_MemoryMap cmd = new Commands.Monitor_MemoryMap();

Expand Down Expand Up @@ -1461,7 +1461,7 @@ public TargetInfo GetMonitorTargetInfo()
return null;
}

private List<Commands.Monitor_FlashSectorMap.FlashSectorData> GetFlashSectorMap()
public List<Commands.Monitor_FlashSectorMap.FlashSectorData> GetFlashSectorMap()
{
IncomingMessage reply = PerformSyncRequest(Commands.c_Monitor_FlashSectorMap, 0, null);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class WireProtocolRequest
public CancellationToken CancellationToken { get; }
public TaskCompletionSource<IncomingMessage> TaskCompletionSource { get; }

public DateTimeOffset Expires { get; private set; } = DateTime.MaxValue;
public DateTimeOffset Expires { get; private set; } = DateTimeOffset.MaxValue;

public DateTime RequestTimestamp { get; private set; }

Expand Down

0 comments on commit c626bd6

Please sign in to comment.