예제 #1
0
파일: tinyG.cpp 프로젝트: FlowBo/operator
void tinyG::onSerialError(const ofx::IO::SerialBufferErrorEventArgs& args)
{
    // Errors and their corresponding buffer (if any) will show up here.
    SerialMessage message(args.getBuffer().toString(),
                          args.getException().displayText(),
                          1000);
}
예제 #2
0
파일: ofApp.cpp 프로젝트: bltzr/NebulaLEDs
void ofApp::onSerialError(const ofx::IO::SerialBufferErrorEventArgs& args)
{
    // Errors and their corresponding buffer (if any) will show up here.
    SerialMessage message(args.getBuffer().toString(),
                          args.getException().displayText(),
                          500);
    
    serialMessages.push_back(message);
    ofLogNotice("onSerialError") << "got serial error : " << message.exception;
}
예제 #3
0
void chladniRC::onSerialError(const ofx::IO::SerialBufferErrorEventArgs& args){
	// Errors and their corresponding buffer (if any) will show up here.
	string message(args.getException().displayText());
	//serialMessages.push_back(message);
}