Changes between Version 1 and Version 2 of Docs/Prog/Manual/ApplicationLibraries/lib825ev/Weight/DLCRepeatMultiIncludeCellWts
- Timestamp:
- 03/16/20 15:04:57 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Docs/Prog/Manual/ApplicationLibraries/lib825ev/Weight/DLCRepeatMultiIncludeCellWts
v1 v2 22 22 {{{ 23 23 24 AllocateRepeatMultiCellWtMemory(GetNumScales()); 24 void IndStartup(void) 25 { 26 MnBdStartup(); 25 27 26 if(DLCRepeatMultiIncludeCellWts(1, true) != OK) 27 { 28 DEBUG_MSG("Error set multi repeat cell wts\r\n"); 28 AllocateRepeatMultiCellWtMemory(GetNumScales()); 29 30 if(DLCRepeatMultiIncludeCellWts(1, true) != OK) 31 { 32 DEBUG_MSG("Error set multi repeat cell wts\r\n"); 33 } 34 35 MnBdSetEvent(MNBD_REQ_REP_MULTI, MnBdEventMultiRcv); 36 37 if(StartRepeatMulti(100) == OK) 38 DisplayText(0, 0, "Wt and I/O 10 times per second"); 29 39 } 30 40 31 MnBdSetEvent(MNBD_REQ_REP_MULTI, MnBdEventMultiRcv); 41 void IndShutdown(void) 42 { 43 MnBdClearEnent(MNBD_REQ_REP_MULTI); 44 StopRepeatMulti(); 32 45 33 if(StartRepeatMulti(100) == OK) 34 DisplayText(0, 0, "Wt and I/O 10 times per second"); 35 36 37 ... 46 DeallocateRepeatMultiCellWtMemory(); 47 } 38 48 39 49 MNBD_EVENT(MultiRcv) … … 41 51 if(repeat_multi_record == 0) // Scale weights and I/O status 42 52 { 43 ...53 // Do typical processing for scale weights 44 54 } 45 55 else if(repeat_multi_record > 0x30 && repeat_multi_record < 0x34) // Cells weights for scale