From 3b9e762b690ad0c490bd088065072b48230e1088 Mon Sep 17 00:00:00 2001 From: sambas Date: Mon, 11 Apr 2011 13:42:32 +0000 Subject: [PATCH] OP-22 Flight/PiOS: Spektrum bugfix, for other than DX7 git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3154 ebee16cc-31ac-478f-84a7-5cbb03baadba --- flight/PiOS/STM32F10x/pios_spektrum.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flight/PiOS/STM32F10x/pios_spektrum.c b/flight/PiOS/STM32F10x/pios_spektrum.c index e4c1133d6..16b9b9883 100644 --- a/flight/PiOS/STM32F10x/pios_spektrum.c +++ b/flight/PiOS/STM32F10x/pios_spektrum.c @@ -45,7 +45,7 @@ /* Local Variables, use pios_usart */ static uint16_t CaptureValue[12],CaptureValueTemp[12]; -static uint8_t prev_byte = 0xFF, sync = 0, bytecount = 0, frame_error=0, byte_array[20] = { 0 }; +static uint8_t prev_byte = 0xFF, sync = 0, bytecount = 0, datalength=0, frame_error=0, byte_array[20] = { 0 }; uint8_t sync_of = 0; @@ -189,7 +189,7 @@ uint8_t PIOS_SPEKTRUM_Bind(void) int32_t PIOS_SPEKTRUM_Decode(uint8_t b) { static uint16_t channel = 0; /*, sync_word = 0;*/ - uint8_t channeln = 0, frame = 0, datalength=0; + uint8_t channeln = 0, frame = 0; uint16_t data = 0; byte_array[bytecount] = b; bytecount++;