Browse Source

Compile cleanups on the IO firmware

sbg
Lorenz Meier 11 years ago
parent
commit
7ee5f127f2
  1. 2
      src/modules/px4iofirmware/registers.c
  2. 1
      src/modules/px4iofirmware/safety.c

2
src/modules/px4iofirmware/registers.c

@ -606,7 +606,7 @@ registers_set_one(uint8_t page, uint8_t offset, uint16_t value) @@ -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++;
}

1
src/modules/px4iofirmware/safety.c

@ -45,7 +45,6 @@ @@ -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;
/*

Loading…
Cancel
Save