mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 07:51:36 +08:00
Compile cleanups on the IO firmware
This commit is contained in:
@@ -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) {
|
if (conf[PX4IO_P_RC_CONFIG_ASSIGNMENT] == UINT8_MAX) {
|
||||||
disabled = true;
|
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++;
|
count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -45,7 +45,6 @@
|
|||||||
#include "px4io.h"
|
#include "px4io.h"
|
||||||
|
|
||||||
static struct hrt_call arming_call;
|
static struct hrt_call arming_call;
|
||||||
static struct hrt_call heartbeat_call;
|
|
||||||
static struct hrt_call failsafe_call;
|
static struct hrt_call failsafe_call;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user