mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-17 02:52:12 +01:00
RFM22B: Fixed the signedness of the return value of the RSSI function.
This commit is contained in:
parent
5724fa083c
commit
9ea572f4f7
@ -750,7 +750,7 @@ uint8_t PIOS_RFM22B_LinkQuality(uint32_t rfm22b_id)
|
||||
return rfm22b_dev->slow_link_quality;
|
||||
}
|
||||
|
||||
uint8_t PIOS_RFM22B_RSSI(uint32_t rfm22b_id)
|
||||
int8_t PIOS_RFM22B_RSSI(uint32_t rfm22b_id)
|
||||
{
|
||||
struct pios_rfm22b_dev *rfm22b_dev = (struct pios_rfm22b_dev *)rfm22b_id;
|
||||
if(!PIOS_RFM22B_validate(rfm22b_dev))
|
||||
|
@ -86,7 +86,7 @@ extern uint32_t PIOS_RFM22B_DeviceID(uint32_t rfb22b_id);
|
||||
extern uint16_t PIOS_RFM22B_Resets(uint32_t rfm22b_id);
|
||||
extern uint16_t PIOS_RFM22B_Timeouts(uint32_t rfm22b_id);
|
||||
extern uint8_t PIOS_RFM22B_LinkQuality(uint32_t rfm22b_id);
|
||||
extern uint8_t PIOS_RFM22B_RSSI(uint32_t rfm22b_id);
|
||||
extern int8_t PIOS_RFM22B_RSSI(uint32_t rfm22b_id);
|
||||
extern bool PIOS_RFM22B_Send_Packet(uint32_t rfm22b_id, PHPacketHandle p, uint32_t max_delay);
|
||||
extern uint32_t PIOS_RFM22B_Receive_Packet(uint32_t rfm22b_id, PHPacketHandle *p, uint32_t max_delay);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user