RevolutionPi / piControl

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

Fix some GCC warnings and add SPDX headers #83

Closed nbuchwitz closed 1 year ago

nbuchwitz commented 1 year ago

Tested as following:

pi@RevPi4233:~/piControl $ piTest -v O_1
variable name: O_1
       offset: 602
       length: 1
          bit: 0
pi@RevPi4233:~/piControl $ piTest -1 -r O_1
Bit value: 0
pi@RevPi4233:~/piControl $ piTest -w O_1,0
Set bit 0 on byte at offset 602. Value 1
pi@RevPi4233:~/piControl $ piTest -1 -r O_1
Bit value: 1