wavefrontshaping / ALP4lib

Python control module for Vialux DMDs based on ALP4.X API.
MIT License
58 stars 41 forks source link

MAKELONG function is wrong #20

Closed K-gihu closed 1 year ago

K-gihu commented 1 year ago

It should be defined as:

def MAKELONG(StartRow, RowCount):
    return StartRow + (RowCount << 16)

but now it is defined as

def MAKELONG(StartRow, RowCount):
    return StartRow + RowCount << 16

The parenthesis makes a difference because in python + sign takes priority over <<.