summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root@avtech.domain.avtechpulse.com>1999-12-31 19:15:33 -0500
committerroot <root@avtech.domain.avtechpulse.com>1999-12-31 19:15:33 -0500
commitc6550aba8a93cf543311d1b63224a8b97b339094 (patch)
tree5647d1bc6e209fe586f70358d0057e4b7b3d8045
parente1678aa56d0d1deaf003e0a04f09d26000d9eca5 (diff)
calculate ch1 min/max ampl correctly in AVR-D3-B
-rw-r--r--error_utils.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/error_utils.c b/error_utils.c
index 718c40b..49dd3b4 100644
--- a/error_utils.c
+++ b/error_utils.c
@@ -657,9 +657,11 @@ int Error_check(ChannelStruct ChannelStateToTest[max_channels])
// handle AVR-D3-B-MS1, where the two channels must have opposite polarities
if ( (globals.Flash.channels==2) && globals.Flash.chans_opposite_polarities && globals.Flash.ChanKey_amplitude) {
if (ChannelStateToTest[0].amplitude > 0.0) {
+ real_min_ampl[0] = 0.0;
real_max_ampl[1] = 0.0;
} else {
- real_min_ampl[1]= 0.0;
+ real_max_ampl[0] = 0.0;
+ real_min_ampl[1] = 0.0;
}
}