int flexioWriteChan(int newbit, int chan)
For some reason, pow is returning 33 for the values of the arguments that we've been putting feeding to it. For example:
pow(2,2)returns 33. Which is totally wrong. Someone should change this line (~apar/devices/flexio/flexioLib.c 476) from:
if (chan>0 && chan<=16) mask = pow(2,chan-1);to:
if (chan>0 && chan<=16) mask = 1<<(chan-1);
This just replaces the pow() routine with a bit shift.
I DID NOT make this change.
A copy of this log entry has been emailed to: rom,mercado,paschke,dalton