Disable TX_TIME when no RTCLOCK on board
This commit is contained in:
@@ -1428,6 +1428,11 @@ bool isTelemetrySourceAvailable(int source)
|
|||||||
return false;
|
return false;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !defined(RTCLOCK)
|
||||||
|
if (source == TELEM_TX_TIME)
|
||||||
|
return false;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (source >= TELEM_RESERVE1 && source <= TELEM_RESERVE5)
|
if (source >= TELEM_RESERVE1 && source <= TELEM_RESERVE5)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1198,7 +1198,7 @@ const pm_uint8_t bchunit_ar[] PROGMEM = {
|
|||||||
void putsTelemetryChannel(xcoord_t x, uint8_t y, uint8_t channel, lcdint_t val, uint8_t att)
|
void putsTelemetryChannel(xcoord_t x, uint8_t y, uint8_t channel, lcdint_t val, uint8_t att)
|
||||||
{
|
{
|
||||||
switch (channel) {
|
switch (channel) {
|
||||||
#if defined(CPUARM)
|
#if defined(CPUARM) && defined(RTCLOCK)
|
||||||
case TELEM_TX_TIME-1:
|
case TELEM_TX_TIME-1:
|
||||||
{
|
{
|
||||||
gtm t;
|
gtm t;
|
||||||
|
|||||||
@@ -1298,7 +1298,7 @@ getvalue_t getValue(uint8_t i)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
else if (i==MIXSRC_FIRST_TELEM-1+TELEM_TX_VOLTAGE) return g_vbat100mV;
|
else if (i==MIXSRC_FIRST_TELEM-1+TELEM_TX_VOLTAGE) return g_vbat100mV;
|
||||||
#if defined(CPUARM)
|
#if defined(CPUARM) && defined(RTCLOCK)
|
||||||
else if (i==MIXSRC_FIRST_TELEM-1+TELEM_TX_TIME) {
|
else if (i==MIXSRC_FIRST_TELEM-1+TELEM_TX_TIME) {
|
||||||
struct gtm t;
|
struct gtm t;
|
||||||
gettime(&t);
|
gettime(&t);
|
||||||
|
|||||||
Reference in New Issue
Block a user