wavefrontshaping / ALP4lib

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

MAKELONG function is wrong #20

Closed K-gihu closed 7 months ago

K-gihu commented 7 months 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 <<.