aboutsummaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2014-01-05 15:20:54 +0100
committerLorenz Meier <lm@inf.ethz.ch>2014-01-05 15:20:54 +0100
commit7ee5f127f238d408a7ee5d4bcde5fd759f0d1a1f (patch)
tree2af2e7c50defc3ed989ddada7758c33d2b664970 /src/modules
parentf00e14f749b371be485958bcb48e54da26c761e4 (diff)
downloadpx4-firmware-7ee5f127f238d408a7ee5d4bcde5fd759f0d1a1f.tar.gz
px4-firmware-7ee5f127f238d408a7ee5d4bcde5fd759f0d1a1f.tar.bz2
px4-firmware-7ee5f127f238d408a7ee5d4bcde5fd759f0d1a1f.zip
Compile cleanups on the IO firmware
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/px4iofirmware/registers.c2
-rw-r--r--src/modules/px4iofirmware/safety.c1
2 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/px4iofirmware/registers.c b/src/modules/px4iofirmware/registers.c
index 0358725db..bfc0337f6 100644
--- a/src/modules/px4iofirmware/registers.c
+++ b/src/modules/px4iofirmware/registers.c
@@ -606,7 +606,7 @@ registers_set_one(uint8_t page, uint8_t offset, uint16_t value)
if (conf[PX4IO_P_RC_CONFIG_ASSIGNMENT] == UINT8_MAX) {
disabled = true;
- } else if ((int)(conf[PX4IO_P_RC_CONFIG_ASSIGNMENT]) < 0 || conf[PX4IO_P_RC_CONFIG_ASSIGNMENT] >= PX4IO_RC_MAPPED_CONTROL_CHANNELS) {
+ } else if (REG_TO_SIGNED(conf[PX4IO_P_RC_CONFIG_ASSIGNMENT]) < 0 || conf[PX4IO_P_RC_CONFIG_ASSIGNMENT] >= PX4IO_RC_MAPPED_CONTROL_CHANNELS) {
count++;
}
diff --git a/src/modules/px4iofirmware/safety.c b/src/modules/px4iofirmware/safety.c
index cdb54a80a..83bd3026e 100644
--- a/src/modules/px4iofirmware/safety.c
+++ b/src/modules/px4iofirmware/safety.c
@@ -45,7 +45,6 @@
#include "px4io.h"
static struct hrt_call arming_call;
-static struct hrt_call heartbeat_call;
static struct hrt_call failsafe_call;
/*