From c2f825647e8fd2aa4bf7a37399203c6071239765 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Wed, 14 May 2014 13:06:20 +0200 Subject: [PATCH] px4io driver: Small fix --- src/drivers/px4io/px4io.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/px4io/px4io.cpp b/src/drivers/px4io/px4io.cpp index c54f6fb3f5..f6b2af324a 100644 --- a/src/drivers/px4io/px4io.cpp +++ b/src/drivers/px4io/px4io.cpp @@ -1508,7 +1508,7 @@ PX4IO::io_get_raw_rc_input(rc_input_values &input_rc) /* last thing set are the actual channel values as 16 bit values */ for (unsigned i = 0; i < channel_count; i++) { - input_rc.values[i] = ®s[prolog + i]; + input_rc.values[i] = regs[prolog + i]; } return ret;