Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2014
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. uint16_t value16;
  2. uint8_t value8;
  3.  
  4. value16 <<= 8;
  5. value8 += 2;
  6.  
  7. value16 = (uint16_t)(value16 << 8);
  8. value8 = (uint8_t)(value8 + 2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement