Unreached switch case in ni_mio_common.c ?

In ni_mio_common.c I find the following (around line 1693 in the last
CVS snapshot):

      if(s->async->cb_mask&COMEDI_CB_EOS){
         /* wake on end-of-scan */
         devpriv->aimode=AIMODE_SCAN;
      }else{
         devpriv->aimode=AIMODE_HALF_FULL;
      }

      switch(devpriv->aimode){
      case AIMODE_HALF_FULL:
         /*generate FIFO interrupts on half-full */
   [...]
         break;
      case AIMODE_SAMPLE:
   [...]
         break;
      case AIMODE_SCAN:
   [...]

It seems as if the middle case AIMODE_SAMPLE will never be reached. Is
this a bug?

Herman

-- 
  K.U.Leuven, Mechanical Engineering, Robotics Research Group
<http://people.mech.kuleuven.ac.be/~bruyninc> Tel: +32 16 322480

Received on 2003-01-23Z19:55:31