Skip to content

Commit

Permalink
[#167] fixing use of start row with ribber in infinite mode
Browse files Browse the repository at this point in the history
  • Loading branch information
dl1com committed May 16, 2017
1 parent 9387cd0 commit b0998ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ayab/plugins/ayab_plugin/ayab_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ def __cnfLine(self, lineNumber):
lineNumber = lineNumber % lenImgExpanded

# calculate imgRow
imgRow = int(lineNumber / 2) + self.__startLine
imgRow = (int(lineNumber / 2) + self.__startLine) % imgHeight

# 0 0 1 1 2 2 3 3 4 4 .. (imgRow)
# 0 1 2 3 4 5 6 7 8 9 .. (lineNumber)
Expand All @@ -464,6 +464,8 @@ def __cnfLine(self, lineNumber):
else:
indexToSend += lineNumber

indexToSend = indexToSend % lenImgExpanded

# Decide whether to send lastLine Flag
if (imgRow == imgHeight - 1) \
and (lineNumber % 4 == 1 or lineNumber % 4 == 3):
Expand Down

0 comments on commit b0998ca

Please sign in to comment.