Skip to content

Commit

Permalink
Reset CRC for each BoF marker
Browse files Browse the repository at this point in the history
References #30
  • Loading branch information
andreashuber-lawo committed Nov 30, 2016
1 parent 9b2c8fb commit 4898e5c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Lawo.EmberPlusSharp/S101/DeframingStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ private bool ReadByte(ReadBuffer readBuffer)
break;
case Frame.BeginOfFrame:
this.decodedQueue.Clear();
this.crc = 0xFFFF;
break;
case Frame.EndOfFrame:
this.state = State.AfterFrame;
Expand Down

0 comments on commit 4898e5c

Please sign in to comment.