stfc-aeg / odin-lpdpower

Prototype of ODIN framework
0 stars 0 forks source link

PSCU temperature/humidity channels have mismatch in disabled key values #4

Closed timcnicholls closed 8 years ago

timcnicholls commented 8 years ago

Channels 0 - 3 have int value, 4-10 have bool.

Reason is that __tempDisabled variable in PSCU class is initialised to [0]*numSensors, but only chans 4-10 have a disable jumper that is mapped onto the MCP IO pin. These are read as True/False on polling sensors.

Similarly, only 2nd humidity sensor has disable header on IO pin.

Fix is to update both so that initialisation of the variables is boolean