switched to Stopwatch for timers for more reliability
This commit is contained in:
@@ -244,8 +244,9 @@ namespace Gidrolock_Modbus_Scanner
|
|||||||
async Task<bool> PollEntry(Entry entry)
|
async Task<bool> PollEntry(Entry entry)
|
||||||
{
|
{
|
||||||
bool res = false;
|
bool res = false;
|
||||||
Modbus.ReadRegAsync(modbusID, (FunctionCode)entry.registerType, entry.address, entry.length);
|
|
||||||
isAwaitingResponse = true;
|
isAwaitingResponse = true;
|
||||||
|
Modbus.ReadRegAsync(modbusID, (FunctionCode)entry.registerType, entry.address, entry.length);
|
||||||
|
|
||||||
|
|
||||||
stopwatch.Restart();
|
stopwatch.Restart();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user