Bayang telemetry: remove startup warning

This commit is contained in:
pascallanger 2016-12-12 11:17:34 +01:00
parent 87de5b5305
commit 46e255bccc

View File

@ -155,7 +155,8 @@ static void __attribute__((unused)) check_rx(void)
//uint8_t flags = packet[3] >> 3;
// battery low: flags & 1
telemetry_counter++;
telemetry_link=1;
if(telemetry_lost==0)
telemetry_link=1;
}
}
}
@ -199,6 +200,7 @@ uint16_t BAYANG_callback()
TX_RSSI = telemetry_counter;
telemetry_counter = 0;
state = 0;
telemetry_lost=0;
}
if (packet_count > 1)
@ -251,6 +253,7 @@ uint16_t initBAYANG(void)
packet_count=0;
#ifdef BAYANG_HUB_TELEMETRY
init_hub_telemetry();
telemetry_lost=1; // do not send telemetry to TX right away until we have a TX_RSSI value to prevent warning message...
#endif
return BAYANG_INITIAL_WAIT+BAYANG_PACKET_PERIOD;
}