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