Skip to content

Commit 125aacd

Browse files
authored
revisit d7bdf69: preventing mode 5 from being sent to the board (espotek-org#439) (espotek-org#441)
1 parent 56b313a commit 125aacd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Desktop_Interface/genericusbdriver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ void genericUsbDriver::setGain(double newGain){
376376
*/
377377
qDebug("newGain = %f", newGain);
378378
qDebug("gainMask = %x", gainMask);
379-
usbSendControl(0x40, 0xa5, (deviceMode == 5 ? 0 : 5), gainMask, 0, NULL);
379+
usbSendControl(0x40, 0xa5, (deviceMode == 5 ? 0 : deviceMode), gainMask, 0, NULL);
380380
}
381381

382382
void genericUsbDriver::avrDebug(void){

0 commit comments

Comments
 (0)