Skip to content

Commit

Permalink
Compilation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
podhrmic committed Dec 3, 2017
1 parent c65ebba commit 32ddcae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/common/C/spprz_utils.c
Expand Up @@ -27,6 +27,7 @@
*/
#include "pprzlink/spprz_utils.h"


/**
* Trivial implementation of the processing function
* Shall be replaced by user implementation!
Expand All @@ -49,5 +50,5 @@ bool WEAK spprz_process_incoming_packet(struct spprz_transport *trans, uint8_t *
*/
bool WEAK spprz_process_outgoing_packet(struct spprz_transport *trans __attribute__((unused)))
{
return true ;
return true;
}
4 changes: 4 additions & 0 deletions lib/v1.0/C/spprz_transport.c
Expand Up @@ -115,6 +115,10 @@ static void end_message(struct spprz_transport *trans, struct link_device *dev,
trans->ck_a_tx = trans->tx_msg[PPRZ_MSG_LEN_IDX];
trans->ck_b_tx = trans->tx_msg[PPRZ_MSG_LEN_IDX];

// send first two bytes
dev->put_byte(dev->periph, fd, trans->tx_msg[0]);
dev->put_byte(dev->periph, fd, trans->tx_msg[1]);

// we start counting checksum at byte 2
for (uint8_t i=2; i<trans->tx_msg_idx; i++) {
accumulate_checksum(trans, trans->tx_msg[i]);
Expand Down

0 comments on commit 32ddcae

Please sign in to comment.