Skip to content

Commit 5e4883d

Browse files
committed
Fixed debounce timers.
1 parent e48e1d3 commit 5e4883d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Emzi0767.Modbuzz.Common/VirtualModbus1.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public sealed class VirtualModbus1
3131
private uint _bigRandom = 0;
3232
private ushort _last, _current, _counter;
3333
private bool _lastIncrement, _counterOverflow;
34-
private long _debounceTimerRandom = long.MinValue, _debounceTimerCounter = long.MinValue;
34+
private long _debounceTimerRandom = 0, _debounceTimerCounter = 0;
3535

3636
public bool GetRegister(ushort address, out ushort value)
3737
{

src/Emzi0767.Modbuzz.Feeder/Emzi0767.Modbuzz.Feeder.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<PublishAot>true</PublishAot>
2828
<InvariantGlobalization>true</InvariantGlobalization>
2929
<DebugType>Portable</DebugType>
30-
<Version>1.0.4</Version>
30+
<Version>1.0.5</Version>
3131
</PropertyGroup>
3232

3333
<PropertyGroup Condition="'$(AOT_RELEASE)' == '1'">

src/Emzi0767.Modbuzz.Feeder/Properties/launchSettings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"profiles": {
33
"Emzi0767.Modbuzz.Feeder": {
44
"commandName": "Project",
5-
"commandLineArgs": "COM3 38400 8 None One"
5+
"commandLineArgs": "COM4 115200 8 None One"
66
}
77
}
8-
}
8+
}

0 commit comments

Comments
 (0)