From 40ae1879e84365abec324485c9ffe3a865c4b877 Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Sun, 31 Jan 2016 11:34:07 +0100 Subject: [PATCH] VC++ compilation fix --- radio/src/opentx.cpp | 6 ++-- radio/src/opentx.h | 2 +- radio/src/switches.cpp | 3 +- radio/src/targets/horus/adc_driver.cpp | 2 +- radio/src/targets/horus/board_horus.h | 2 +- radio/src/targets/sky9x/adc_driver.cpp | 42 +++++++++++------------ radio/src/targets/sky9x/board_sky9x.h | 2 +- radio/src/targets/taranis/adc_driver.cpp | 42 +++++++++++------------ radio/src/targets/taranis/board_taranis.h | 2 +- 9 files changed, 52 insertions(+), 51 deletions(-) diff --git a/radio/src/opentx.cpp b/radio/src/opentx.cpp index 28edb4b7a..45a57ed64 100644 --- a/radio/src/opentx.cpp +++ b/radio/src/opentx.cpp @@ -1544,9 +1544,9 @@ void getADC() } #endif - for (uint32_t i=0; i<4; i++) { + for (uint8_t i=0; i<4; i++) { adcRead(); - for (uint32_t x=0; x> 3; #if defined(JITTER_FILTER) diff --git a/radio/src/opentx.h b/radio/src/opentx.h index ee7cc3454..41ef601f4 100644 --- a/radio/src/opentx.h +++ b/radio/src/opentx.h @@ -973,7 +973,7 @@ void checkAlarm(); void checkAll(); #if !defined(SIMU) - void getADC(); +void getADC(); #endif #if defined(SBUS) diff --git a/radio/src/switches.cpp b/radio/src/switches.cpp index 8813a6a19..b2854b9b3 100644 --- a/radio/src/switches.cpp +++ b/radio/src/switches.cpp @@ -762,8 +762,9 @@ void checkSwitches() #define GETADC_COUNT 1 #endif #ifdef GETADC_COUNT - for (int i=0; i