Commit 6051268f1a1f47ffc4de2f01d8fb48e5763cee17

Authored by oliverhaag
1 parent db76656c

DSO-2250 channel fix

openhantek/ChangeLog
... ... @@ -196,3 +196,6 @@
196 196 2012-11-26 Oliver Haag <oliver.haag@gmail.com>
197 197 * Bugfix: Roll mode caused crash or hanging
198 198 * Bugfix: DSO-2150 samplerate maximum was 100 MS/s
  199 +
  200 +2012-11-27 Oliver Haag <oliver.haag@gmail.com>
  201 +* Bugfix: Hantek::Control::setChannelUsed used setTrigger instead of setChannels
... ...
openhantek/src/hantek/control.cpp
... ... @@ -1121,14 +1121,14 @@ namespace Hantek {
1121 1121 }
1122 1122 else {
1123 1123 // DSO-2250 uses a different value for channel 2
1124   - if(this->specification.command.bulk.setTrigger == BULK_BSETCHANNELS)
  1124 + if(this->specification.command.bulk.setChannels == BULK_BSETCHANNELS)
1125 1125 usedChannels = BUSED_CH2;
1126 1126 else
1127 1127 usedChannels = USED_CH2;
1128 1128 }
1129 1129 }
1130 1130  
1131   - switch(this->specification.command.bulk.setTrigger) {
  1131 + switch(this->specification.command.bulk.setChannels) {
1132 1132 case BULK_SETTRIGGERANDSAMPLERATE: {
1133 1133 // SetTriggerAndSamplerate bulk command for trigger source
1134 1134 static_cast<BulkSetTriggerAndSamplerate *>(this->command[BULK_SETTRIGGERANDSAMPLERATE])->setUsedChannels(usedChannels);
... ...