Commit 0dd75a1423967b60e4b0a9fc6741ad63057c32dc

Authored by oliverhaag
1 parent 4081ecc9

Small DSO-2250 fix

openhantek/ChangeLog
... ... @@ -173,3 +173,6 @@
173 173 2012-10-28 Oliver Haag <oliver.haag@gmail.com>
174 174 * Bugfix: DSO-2250 support, thanks to Dmitry Kolyadintsev
175 175 * Bugfix: Remove invalid divider for large buffers
  176 +
  177 +2012-11-05 Oliver Haag <oliver.haag@gmail.com>
  178 +* Bugfix: short instead of long int for DSO-2250 trigger offset
... ...
openhantek/src/hantek/control.cpp
... ... @@ -1176,8 +1176,8 @@ namespace Hantek {
1176 1176 }
1177 1177 case BULK_FSETBUFFER: {
1178 1178 // Calculate the position values (Inverse, maximum is 0x7ffff)
1179   - unsigned short int positionPre = 0x7ffff - this->specification.recordLengths[this->settings.recordLengthId] + positionSamples;
1180   - unsigned short int positionPost = 0x7ffff - positionSamples;
  1179 + unsigned long int positionPre = 0x7fffful - this->specification.recordLengths[this->settings.recordLengthId] + positionSamples;
  1180 + unsigned long int positionPost = 0x7fffful - positionSamples;
1181 1181  
1182 1182 // SetBuffer2250 bulk command for trigger position
1183 1183 BulkSetBuffer2250 *commandSetBuffer2250 = static_cast<BulkSetBuffer2250 *>(this->command[BULK_FSETBUFFER]);
... ...