enhering

Untitled

Sep 17th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.45 KB | None | 0 0
  1. void COM::FormatCapacitierPerSlotAndSend() {
  2.  
  3.   for (uint32_t nCapacityBit = 0; nCapacityBit < TOTAL_CAPACITIES; nCapacityBit++) {
  4.  
  5.     m_cUART.Write('\n');
  6.  
  7.     FormatLongAndSend(nCapacityBit);
  8.  
  9.     for (volatile uint32_t nSlot = 1; nSlot <= NUM_SLOTS; nSlot++) {
  10.       if (m_anSlotListPerCapacity[nCapacityBit] & (uint32_t)(1UL << nSlot)) {
  11.         m_cUART.Write('X');
  12.       }
  13.       else {
  14.         m_cUART.Write('.');
  15.       }
  16.     }
  17.   }
  18.   m_cUART.Write('\n');
  19. }
Advertisement
Add Comment
Please, Sign In to add comment