GVARs display/adjust was truncated to 8 bits

This commit is contained in:
bernet.andre@gmail.com
2013-02-26 15:29:54 +00:00
parent 42b41e8f03
commit fbd1488b62
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1168,7 +1168,7 @@ int16_t getGVarValue(int16_t x, int16_t min, int16_t max, int8_t phase)
return limit(min, x, max);
}
void setGVarValue(uint8_t idx, int8_t value, int8_t phase)
void setGVarValue(uint8_t idx, int16_t value, int8_t phase)
{
phase = getGVarFlightPhase(phase, idx);
if (GVAR_VALUE(idx, phase) != value) {