Compilation fixes
This commit is contained in:
@@ -290,10 +290,10 @@ class TelemetryData {
|
||||
|
||||
void setSwr(uint8_t module, uint8_t value)
|
||||
{
|
||||
if (module == EXTERNAL_MODULE)
|
||||
swrExternal.set(value);
|
||||
else
|
||||
if (module == 0)
|
||||
swrInternal.set(value);
|
||||
else
|
||||
swrExternal.set(value);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#define _TELEMETRY_HOLDERS_H_
|
||||
|
||||
#include <inttypes.h>
|
||||
#include "../timers.h"
|
||||
|
||||
#define TELEMETRY_AVERAGE_COUNT 3 // we actually average one more reading!
|
||||
#define RAW_FRSKY_MINMAX(v) v.values[TELEMETRY_AVERAGE_COUNT-1]
|
||||
|
||||
Reference in New Issue
Block a user