Skip to content

Commit

Permalink
added blink1Index to allow blink1 device selection (from config file,…
Browse files Browse the repository at this point in the history
… see issue #87)
  • Loading branch information
todbot committed Jun 20, 2014
1 parent f53199d commit f650bff
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions qt/blink1control/mainwindow.cpp
Expand Up @@ -85,8 +85,9 @@ MainWindow::MainWindow(QWidget *parent) :

blink1_disableDegamma(); // for mk2 only

int n = blink1_enumerate();
//int n = blink1_enumerate();
//blink1dev = blink1_open();
blink1_enumerate();
blink1dev = blink1_openById( blink1Index );

if( blink1dev ) {
Expand Down Expand Up @@ -276,8 +277,9 @@ void MainWindow::updateInputs()
//}
blink1_disableDegamma(); // FIXME: why is this being done here in updateInputs()?
// FIXME: the below is copy-n-pasted from what's in the constructor
int n=blink1_enumerate();
//int n=blink1_enumerate();
//blink1dev = blink1_open();
blink1_enumerate();
blink1dev = blink1_openById( blink1Index );
if( blink1dev ) {
char ser[10];
Expand Down

0 comments on commit f650bff

Please sign in to comment.