Advertisement
Guest User

Untitled

a guest
Sep 1st, 2016
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         /* shift the bytes of received command to correct the
  2.          * the received frame.
  3.          */
  4.         for(uint32_t i = sizeof(ble_cmd_t) - 1; i != 0 ; i--) {
  5.             ((uint8_t *)&received_command)[i] = ((uint8_t *)&received_command)[i - 1];
  6.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement