コード例 #1
0
ファイル: datalogging.c プロジェクト: ngocphu811/rusefi
/**
 * This method actually sends all the pending data to the communication layer
 */
void printPending(void) {
	lockOutputBuffer();
	// we cannot output under syslock, so another buffer
	strcpy(outputBuffer, pendingBuffer);
	pendingBuffer[0] = 0; // reset pending buffer
	unlockOutputBuffer();

	if (efiStrlen(outputBuffer) > 0) {
		printWithLength(outputBuffer);
	}
}
コード例 #2
0
ファイル: datalogging.cpp プロジェクト: ioerror88/rusefi
void printLine(Logging *logging) {
	printWithLength(logging->buffer);
	resetLogging(logging);
}