@@ -136,7 +136,7 @@ bool ofArduino::connect (string device, int baud)
136136{
137137 connectTime = ofGetElapsedTimef ();
138138 _initialized = false ;
139- _port.enumerateDevices ();
139+ // _port.enumerateDevices();
140140 connected = _port.setup (device.c_str (), baud);
141141 return connected;
142142}
@@ -196,7 +196,7 @@ void ofArduino::update()
196196 int bytesToRead = _port.available ();
197197 if (bytesToRead > 0 )
198198 {
199- std::cout << " Bytes found: " << bytesToRead << std::endl;
199+ // std::cout << "Bytes found: " << bytesToRead << std::endl;
200200 bytesToProcess.resize (bytesToRead);
201201 _port.readBytes (&bytesToProcess[0 ], bytesToRead);
202202 for (int i = 0 ; i < bytesToRead; i++)
@@ -469,7 +469,7 @@ bool ofArduino::isInitialized()
469469void ofArduino::processData (unsigned char inputData)
470470{
471471 char msg[100 ];
472- snprintf (msg, sizeof (msg), " Received Byte: %i" , inputData);
472+ // snprintf (msg, sizeof (msg), "Received Byte: %i", inputData);
473473 // Logger::get("Application").information(msg);
474474
475475 // we have command data
@@ -489,7 +489,7 @@ void ofArduino::processData (unsigned char inputData)
489489 processDigitalPort (_multiByteChannel, (_storedInputData[0 ] << 7 ) | _storedInputData[1 ]);
490490 break ;
491491 case FIRMATA_REPORT_VERSION: // report version
492- printf (" Received report version\n\n " );
492+ // printf ("Received report version\n\n");
493493 _majorProtocolVersion = _storedInputData[1 ];
494494 _minorProtocolVersion = _storedInputData[0 ];
495495 // ofNotifyEvent(EProtocolVersionReceived, _majorProtocolVersion, this);
0 commit comments