auto-sync

This commit is contained in:
rusEfi 2016-02-13 17:02:32 -05:00
parent 926cf7dadf
commit 6210c7b9bb
2 changed files with 6 additions and 6 deletions

View File

@ -201,13 +201,13 @@ static THD_FUNCTION(consoleThreadThreadEntryPoint, arg) {
} }
} }
void consolePutChar(int x) {
chSequentialStreamPut(getConsoleChannel(), (uint8_t )(x));
}
// 10 seconds // 10 seconds
#define CONSOLE_WRITE_TIMEOUT 10000 #define CONSOLE_WRITE_TIMEOUT 10000
void consolePutChar(int x) {
chnWriteTimeout(getConsoleChannel(), (const uint8_t *)&x, 1, CONSOLE_WRITE_TIMEOUT);
}
void consoleOutputBuffer(const uint8_t *buf, int size) { void consoleOutputBuffer(const uint8_t *buf, int size) {
lastWriteSize = size; lastWriteSize = size;
#if !EFI_UART_ECHO_TEST_MODE #if !EFI_UART_ECHO_TEST_MODE

View File

@ -153,7 +153,7 @@ public class SerialPort {
public boolean openPort() throws SerialPortException { public boolean openPort() throws SerialPortException {
Throwable e = new Throwable(); Throwable e = new Throwable();
e.printStackTrace(); e.printStackTrace();
log("openPort"); log("openPort " + portName);
if(portOpened){ if(portOpened){
throw new SerialPortException(portName, "openPort()", SerialPortException.TYPE_PORT_ALREADY_OPENED); throw new SerialPortException(portName, "openPort()", SerialPortException.TYPE_PORT_ALREADY_OPENED);
} }
@ -244,7 +244,7 @@ public class SerialPort {
* @throws SerialPortException * @throws SerialPortException
*/ */
public boolean purgePort(int flags) throws SerialPortException { public boolean purgePort(int flags) throws SerialPortException {
log("purgePort " + flags); log("purgePort flags=" + flags);
checkPortOpened("purgePort()"); checkPortOpened("purgePort()");
return serialInterface.purgePort(portHandle, flags); return serialInterface.purgePort(portHandle, flags);
} }