From a645a388bcb8c598f59d11c4b4a68265f64cb022 Mon Sep 17 00:00:00 2001 From: px4dev Date: Sat, 9 Feb 2013 00:53:51 -0800 Subject: [PATCH] Fix a sign error --- apps/px4io/registers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/px4io/registers.c b/apps/px4io/registers.c index c60491f93c..3824c64b06 100644 --- a/apps/px4io/registers.c +++ b/apps/px4io/registers.c @@ -370,7 +370,7 @@ registers_set_one(uint8_t page, uint8_t offset, uint16_t value) /* assert min..center..max ordering */ if (conf[PX4IO_P_RC_CONFIG_MIN] < 500) break; - if (conf[PX4IO_P_RC_CONFIG_MAX] < 2500) + if (conf[PX4IO_P_RC_CONFIG_MAX] > 2500) break; if (conf[PX4IO_P_RC_CONFIG_CENTER] < conf[PX4IO_P_RC_CONFIG_MIN]) break;