Skip to content

Commit 65c7f16

Browse files
committed
handle timestamp conflict case where block exists online but not offline
1 parent b269853 commit 65c7f16

File tree

1 file changed

+1
-3
lines changed
  • LibNoDaveConnectionLibrary/DataTypes/Blocks/Step7V5

1 file changed

+1
-3
lines changed

LibNoDaveConnectionLibrary/DataTypes/Blocks/Step7V5/S7Block.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,7 @@ public enum S7BlockAtributes: byte
224224
/// </summary>
225225
public static bool HasTimestampConflict(DateTime dt1, DateTime dt2)
226226
{
227-
if (!dt1.Equals(DateTime.MinValue) &&
228-
!dt2.Equals(DateTime.MinValue) &&
229-
!dt1.Equals(dt2))
227+
if (!dt1.Equals(dt2))
230228
{
231229
return true;
232230
}

0 commit comments

Comments
 (0)