Bsongis/rssi from 2 different modules (#6711)
RSSI from 2 different modules
This commit is contained in:
@@ -31,6 +31,11 @@
|
||||
|
||||
extern uint8_t telemetryStreaming; // >0 (true) == data is streaming in. 0 = no data detected for some time
|
||||
|
||||
inline bool TELEMETRY_STREAMING()
|
||||
{
|
||||
return telemetryStreaming > 0;
|
||||
}
|
||||
|
||||
enum TelemetryStates {
|
||||
TELEMETRY_INIT,
|
||||
TELEMETRY_OK,
|
||||
@@ -38,7 +43,7 @@ enum TelemetryStates {
|
||||
};
|
||||
extern uint8_t telemetryState;
|
||||
|
||||
#define TELEMETRY_TIMEOUT10ms 100 // 1 second
|
||||
constexpr uint8_t TELEMETRY_TIMEOUT10ms = 100; // 1 second
|
||||
|
||||
#define TELEMETRY_SERIAL_DEFAULT 0
|
||||
#define TELEMETRY_SERIAL_8E2 1
|
||||
@@ -139,9 +144,6 @@ void logTelemetryWriteByte(uint8_t data);
|
||||
#define LOG_TELEMETRY_WRITE_BYTE(data)
|
||||
#endif
|
||||
|
||||
#define TELEMETRY_ENDPOINT_NONE 0xFF
|
||||
#define TELEMETRY_ENDPOINT_SPORT 0x07
|
||||
|
||||
class OutputTelemetryBuffer {
|
||||
public:
|
||||
OutputTelemetryBuffer()
|
||||
|
||||
Reference in New Issue
Block a user