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


Ignore:
Timestamp:
02/26/20 08:51:40 (5 years ago)
Author:
Don Wilson
Comment:

--

Legend:

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

    v1 v2  
    1919
    2020== Remarks ==
     21Requires at least main board version 1.20.009 and OS version 1.12.024.
     22
    2123This function instructs the main board to prepare for buffered weight recording. When the gross weight division value exceeds the on threshold for consecutive on count the buffering begins. Gross weights are recorded into the buffer. When the gross weight drops below the off threshold for consecutive off count the buffering stops. This allows the application to process high speed.
    2224
     
    2426
    2527{{{
     28
     29int minor_ver = 0;
     30int ver = GetMnBdVer(&minor_ver);
     31if(ver < 120 || (ver == 120 && minor_ver < 9))
     32{
     33   DrawErrorBox("Min mnbd ver 1.20.009", 10);
     34   MnBdShutdown();
     35   exit(0);
     36}
     37
     38uint32_t cardinal_ver = GetCardinalOSVer();
     39if(cardinal_ver < MACE_VER(1, 12, 24))
     40{
     41   DrawErrorBox(Min OS ver 1.12.024", 10);
     42   MnBdShutdown();
     43   exit(0);
     44}
    2645
    2746float onWtThres = 1500.0;