Firmware/FFBoard/UserExtensions/Src/FFBoardMainCommandThread.cpp
/*
 * Prints a formatted list of error conditions
 */
Prints a formatted list of error conditions
Prints a formatted list of error conditions
void FFBoardMainCommandThread::printErrors(std::string *reply){
	std::vector<Error>* errors = ErrorHandler::getErrors();
	if(errors->size() == 0){
		*reply += "None";
		return;
	}
	for(Error error : *errors){
		*reply += error.toString() + "\n";
	}
	ErrorHandler::clearTemp();
}
void FFBoardMainCommandThread :: printErrors ( std :: string * reply ) { std :: vector < Error > * errors = ErrorHandler :: getErrors ( ) ; if ( errors -> size ( ) == 0 ) { * reply += " " ; return ; } for ( Error error : * errors ) { * reply += error . toString ( ) + " \n " ; } ErrorHandler :: clearTemp ( ) ; }
Prints a formatted list of error conditions
Prints a formatted list of error conditions