From 8354f4d842e800c3a169add83c21ae86aad76334 Mon Sep 17 00:00:00 2001 From: bsongis Date: Mon, 6 Oct 2014 00:03:19 +0200 Subject: [PATCH] Sky9x Coprocessor bug fix --- radio/src/opentx.cpp | 2 +- radio/src/targets/sky9x/rtc_driver.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/radio/src/opentx.cpp b/radio/src/opentx.cpp index 6b878c183..34aab0143 100644 --- a/radio/src/opentx.cpp +++ b/radio/src/opentx.cpp @@ -2914,7 +2914,7 @@ void opentxInit(OPENTX_INIT_ARGS) btInit(); #endif -#if defined(RTCLOCK) +#if defined(RTCLOCK) && !defined(COPROCESSOR) rtcInit(); #endif diff --git a/radio/src/targets/sky9x/rtc_driver.cpp b/radio/src/targets/sky9x/rtc_driver.cpp index 92aabb3f8..e39e6e0fa 100644 --- a/radio/src/targets/sky9x/rtc_driver.cpp +++ b/radio/src/targets/sky9x/rtc_driver.cpp @@ -276,5 +276,7 @@ void rtcInit() { #if defined(REVX) readRTC(); +#else + coprocReadData(); #endif }