RevolutionPi / piControl

Kernel module for data exchange with RevPi I/O-Modules and Gateways
81 stars 24 forks source link

piControl: Dont use wrong offset for default values #39

Closed linosanfilippo-kunbus closed 3 years ago

linosanfilippo-kunbus commented 3 years ago

In PiBridgeMaster_setDefaults() dont use a INT8U variable to calculate the offset of a bit within the shared memory segment (aka "process image"). This distorts all values which are greater than 255. Instead use an unsigned int to provide the max possible offset within the memory segment.

Signed-off-by: Lino Sanfilippo l.sanfilippo@kunbus.com