Compilation fixes

This commit is contained in:
Bertrand Songis
2019-04-16 21:23:09 +02:00
parent e47603dcf7
commit 6676e98a92
6 changed files with 18 additions and 13 deletions
+3 -3
View File
@@ -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);
}
};
+1
View File
@@ -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]