aboutsummaryrefslogtreecommitdiff
path: root/apps/px4io/sbus.c
diff options
context:
space:
mode:
authorpx4dev <px4@purgatory.org>2012-11-30 01:46:14 -0800
committerpx4dev <px4@purgatory.org>2012-11-30 01:46:14 -0800
commite0df7e6a7648bb7c40411561e308a408b5ee7beb (patch)
tree40813830dd2cdf97b5be111d9a67ae453dc658e1 /apps/px4io/sbus.c
parentc961dd8bab38c1a8570eaf02b912353641e45df3 (diff)
downloadpx4-firmware-e0df7e6a7648bb7c40411561e308a408b5ee7beb.tar.gz
px4-firmware-e0df7e6a7648bb7c40411561e308a408b5ee7beb.tar.bz2
px4-firmware-e0df7e6a7648bb7c40411561e308a408b5ee7beb.zip
save ~200 bytes of RAM by correctly positioning the S.bus decoder table in flash.
Diffstat (limited to 'apps/px4io/sbus.c')
-rw-r--r--apps/px4io/sbus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/px4io/sbus.c b/apps/px4io/sbus.c
index 497818c94..ed69358e9 100644
--- a/apps/px4io/sbus.c
+++ b/apps/px4io/sbus.c
@@ -168,7 +168,7 @@ struct sbus_bit_pick {
uint8_t mask;
uint8_t lshift;
};
-static struct sbus_bit_pick sbus_decoder[][3] = {
+static const struct sbus_bit_pick sbus_decoder[][3] = {
/* 0 */ { { 0, 0, 0xff, 0},{ 1, 0, 0x07, 8},{ 0, 0, 0x00, 0} },
/* 1 */ { { 1, 3, 0x1f, 0},{ 2, 0, 0x3f, 5},{ 0, 0, 0x00, 0} },
/* 2 */ { { 2, 6, 0x03, 0},{ 3, 0, 0xff, 2},{ 4, 0, 0x01, 10} },