void parse_rssi_dl(void) { uint8_t sender_id = SenderIdOfPprzMsg(dl_buffer); uint8_t msg_id = IdOfPprzMsg(dl_buffer); if (sender_id > 0 && msg_id == DL_RSSI) { set_rssi(sender_id, DL_RSSI_tx_power(dl_buffer), DL_RSSI_rssi(dl_buffer)); } }
static void rssi_cb(uint8_t sender_id __attribute__((unused)), uint8_t _ac_id, int8_t _tx_strength, int8_t _rssi) { if(sender_id != RSSI_MODULE_ID){ set_rssi(_ac_id, _tx_strength, _rssi); } }