Skip to content

Commit

Permalink
Bump pprzlink to work properly with encrypted link (both pprzlink v1.…
Browse files Browse the repository at this point in the history
…0 and v2.)
  • Loading branch information
podhrmic committed Mar 28, 2018
1 parent e3fe8ff commit be41080
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion sw/airborne/modules/datalink/gec_dl.c
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,7 @@ void gec_process_msg1(uint8_t *buf)

gec_encapsulate_and_send_msg(&msg2, 0);
#else
#if PPRZLINK_DEFAULT_VER ==1
// Pprzlink 1.0
// now we have to manually construct the message
// CRYPTO BYTE
Expand All @@ -703,7 +704,8 @@ void gec_process_msg1(uint8_t *buf)
gec_tp.tx_msg_idx += sizeof(msg_data);

gec_encapsulate_and_send_msg(&gec_tp, &DOWNLINK_DEVICE.device, 0);
#endif // PPRZLINK 1.0/2.0
#endif // PPRZLINK 1.0
#endif // PPRZLINK 2.0

/*
* Note that ideally we would use the following function call, but the problem is that
Expand Down
2 changes: 1 addition & 1 deletion sw/ext/pprzlink

0 comments on commit be41080

Please sign in to comment.