aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2014-10-07 08:05:32 +0200
committerLorenz Meier <lm@inf.ethz.ch>2014-10-07 08:05:32 +0200
commitcb0cbe479ae4bdaab6b6570857d240940fea713d (patch)
tree7ff5d93e3efad6da0211fd34338d45c8b3102725
parent9c89499696baa15f709d125e46866e9f11ad5432 (diff)
downloadpx4-firmware-cb0cbe479ae4bdaab6b6570857d240940fea713d.tar.gz
px4-firmware-cb0cbe479ae4bdaab6b6570857d240940fea713d.tar.bz2
px4-firmware-cb0cbe479ae4bdaab6b6570857d240940fea713d.zip
Finalizing ST24 lib
-rw-r--r--src/lib/rc/st24.c2
-rw-r--r--src/lib/rc/st24.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/rc/st24.c b/src/lib/rc/st24.c
index 5a13649b5..31a1e3fd3 100644
--- a/src/lib/rc/st24.c
+++ b/src/lib/rc/st24.c
@@ -102,7 +102,7 @@ uint8_t st24_common_crc8(uint8_t *ptr, uint8_t len)
}
-uint8_t st24_decode(uint8_t byte, uint8_t *rssi, uint8_t* rx_count, uint16_t *channel_count, int16_t *channels, uint16_t max_chan_count)
+uint8_t st24_decode(uint8_t byte, uint8_t *rssi, uint8_t* rx_count, uint16_t *channel_count, uint16_t *channels, uint16_t max_chan_count)
{
bool ret = false;
diff --git a/src/lib/rc/st24.h b/src/lib/rc/st24.h
index 45a835f77..6023a7507 100644
--- a/src/lib/rc/st24.h
+++ b/src/lib/rc/st24.h
@@ -157,6 +157,6 @@ uint8_t st24_common_crc8(uint8_t *ptr, uint8_t len);
* @param max_chan_count maximum channels to decode - if more channels are decoded, the last n are skipped and success (0) is returned
* @return 0 for success (a decoded packet), 1 for no packet yet (accumulating), 3 for out of sync, 4 for checksum error
*/
-__EXPORT uint8_t st24_decode(uint8_t byte, uint8_t *rssi, uint8_t* rx_count, uint16_t* channel_count, int16_t *channels, uint16_t max_chan_count);
+__EXPORT uint8_t st24_decode(uint8_t byte, uint8_t *rssi, uint8_t* rx_count, uint16_t* channel_count, uint16_t *channels, uint16_t max_chan_count);
__END_DECLS