File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ def close_file(*args):
5656 # Set up necessary parameters from command line
5757 dispatcher = dispatcher .Dispatcher ()
5858 if args .option == "print" :
59- dispatcher .map ("/openbci" , print_message )
59+ dispatcher .map (args . address , print_message )
6060 signal .signal (signal .SIGINT , exit_print )
6161
6262 elif args .option == "record" :
@@ -68,7 +68,7 @@ def close_file(*args):
6868 textfile .write ("time,address,messages\n " )
6969 textfile .write ("-------------------------\n " )
7070 print ("Recording to %s" % filename )
71- dispatcher .map ("/openbci" , record_to_file )
71+ dispatcher .map (args . address , record_to_file )
7272 signal .signal (signal .SIGINT , close_file )
7373
7474 # Display server attributes
Original file line number Diff line number Diff line change @@ -1469,9 +1469,9 @@ class Stream extends Thread {
14691469 // Bin 10 == 10Hz frequency range
14701470 if (this . protocol. equals(" OSC" )) {
14711471 for (int i = 0 ; i < numExgChannels; i++ ) {
1472- msg. clearArguments();
1473- msg. setAddrPattern(baseOscAddress + " /fft/ch" + i);
14741472 for (int j = 0 ; j < 125 ; j++ ) {
1473+ msg. clearArguments();
1474+ msg. setAddrPattern(baseOscAddress + " /fft/ch" + i + " /bin" + j);
14751475 msg. add(fftBuff[i]. getBand(j));
14761476 }
14771477 try {
You can’t perform that action at this time.
0 commit comments