Changes between Version 8 and Version 9 of Docs/Prog/Manual/ApplicationLibraries/lib825ev/Weight/MnBdSetEvent


Ignore:
Timestamp:
12/13/12 15:42:47 (12 years ago)
Author:
Don Wilson
Comment:

--

Legend:

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

    v8 v9  
    1919// Global
    2020CMillisecondTimer timerReqWeight;
     21int nextReqScale = 1;
    2122...
     23
     24   MnBdStartup();
    2225
    2326   SetBackgroundEvent(BackgroundEventComm);
     
    5154   if(timerReqWeigt.IsExpired() == true)
    5255   {
    53       MnBdRequest(1, MNBD_REQ_GET_WT, NO_WAIT_ACK);
     56      MnBdRequest(nextReqScale, MNBD_REQ_GET_WT, NO_WAIT_ACK);
     57      if(nextReqScale == GetNumScales())
     58         nextReqScale = 1;
     59      else
     60         nextReqScale++;
    5461   }
    5562   return 0;