Changes between Version 1 and Version 2 of Docs/Prog/Manual/ApplicationLibraries/lib825ev/Weight/CheckWIM


Ignore:
Timestamp:
10/20/10 13:16:16 (14 years ago)
Author:
Don Wilson
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Docs/Prog/Manual/ApplicationLibraries/lib825ev/Weight/CheckWIM

    v1 v2  
    1212== Return Value ==
    1313
    14  * Returns
     14 * Returns number of weights recorded in buffer
    1515
    1616== Remarks ==
     
    2020
    2121{{{
     22
     23extern int* pwim;
     24
     25// Do WIM setup first ...
     26CSleep slp(1);
     27int i, x;
     28while(1)
     29{
     30   slp.Pause();
     31   x = CheckWIM(1);
     32   if(x > 0)
     33   {
     34      // Loop through WIM samples
     35      for(i = 0; i < x; i++)
     36      {
     37          printf("weight %d\r\n", pwim[i]);
     38      }
     39   }
     40   else if(CheckWtRcv(1))  // If below threshold
     41   {
     42   
     43   }
     44}
    2245}}}
    2346