A3/A4 support

This commit is contained in:
bsongis
2014-05-23 11:09:22 +02:00
parent 4164481d0a
commit daf80cad83
5 changed files with 39 additions and 6 deletions
+5
View File
@@ -163,6 +163,11 @@ uint16_t getChannelRatio(uint8_t channel)
lcdint_t applyChannelRatio(uint8_t channel, lcdint_t val)
{
#if defined(CPUARM)
// A3 and A4 don't have ratio settings
if (channel > 1)
return val;
#endif
return ((int32_t)val+g_model.frsky.channels[channel].offset) * getChannelRatio(channel) * 2 / 51;
}
#endif