1
0
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:
Brian Webb 2012-10-04 21:23:44 -07:00
parent 5724fa083c
commit 9ea572f4f7
2 changed files with 2 additions and 2 deletions

View File

@ -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))

View File

@ -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);