Skip to content

Commit

Permalink
Update error correction
Browse files Browse the repository at this point in the history
  • Loading branch information
kam17049 authored Nov 9, 2018
1 parent 82cc194 commit 68ec3c4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .gitignore/error correction
Original file line number Diff line number Diff line change
Expand Up @@ -155,3 +155,11 @@ def repairFrames(frames, parity):
print('Frame', frames.index(frame), 'has been repaired')
else:
print('Frame', frames.index(frame), 'could not be repaired')

def stripFrames(frames):
"""returns an 8x8 payload for each frame"""
newFrames = []
for frame in frames:
(payload, parityColumn, parityRow) = splitFrame(frame)
newFrames.append(payload)
return newFrames

0 comments on commit 68ec3c4

Please sign in to comment.