Fixes #1399 - Option to hide inv parameter effect in the channel monitor

This commit is contained in:
Damjan Adamic
2014-06-29 12:00:29 +02:00
parent a3d7c694ef
commit c5aa691467
2 changed files with 17 additions and 1 deletions
+5
View File
@@ -75,6 +75,11 @@ void menuChannelsView(uint8_t event)
int32_t val = channelOutputs[ch];
uint8_t ofs = (col ? 0 : 1);
#if defined(CHANNELS_MONITOR_INV_HIDE)
//if channel output is inverted, show it with oposite sign
if (g_model.limitData[ch].revert) val = -val;
#endif
// Channel name if present, number if not
uint8_t lenLabel = ZLEN(g_model.limitData[ch].name);
if (lenLabel > 4) {