Re #1835: fix for negative trim index

This commit is contained in:
Damjan Adamic
2014-12-14 14:17:46 +01:00
parent 0e39aaaf72
commit 95462b75e6
+1 -1
View File
@@ -566,7 +566,7 @@ void evalInputs(uint8_t mode)
#if defined(PCBTARANIS)
#define HELI_ANAS_ARRAY(x) heliAnas[x]
#define HELI_TRIMS_ARRAY(x) trims[heliTrims[x]]
#define HELI_TRIMS_ARRAY(x) ((heliTrims[x]>=0) ? trims[heliTrims[x]] : 0)
#else
#define HELI_ANAS_ARRAY(x) anas[x]
#define HELI_TRIMS_ARRAY(x) trims[x]