• Main INDEX
  • Monthly INDEX
  • PREV
  • NEXT
    Make New Entry, Make Followup Entry

    User name Moffit

    Log entry time 11:30:29 on August 25, 2009

    Entry number 285859

    keyword=BUG found in flexio Library...

    I found a problem in the flexio library... well... actually... there's a problem with using the "pow(int,int)" command in the routine:
    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:

    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);
      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