auto-sync
This commit is contained in:
parent
4facde3d80
commit
31965c8092
|
@ -201,13 +201,13 @@ static THD_FUNCTION(consoleThreadThreadEntryPoint, arg) {
|
|||
}
|
||||
}
|
||||
|
||||
void consolePutChar(int x) {
|
||||
chSequentialStreamPut(getConsoleChannel(), (uint8_t )(x));
|
||||
}
|
||||
|
||||
// 10 seconds
|
||||
#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) {
|
||||
lastWriteSize = size;
|
||||
#if !EFI_UART_ECHO_TEST_MODE
|
||||
|
|
|
@ -153,7 +153,7 @@ public class SerialPort {
|
|||
public boolean openPort() throws SerialPortException {
|
||||
Throwable e = new Throwable();
|
||||
e.printStackTrace();
|
||||
log("openPort");
|
||||
log("openPort " + portName);
|
||||
if(portOpened){
|
||||
throw new SerialPortException(portName, "openPort()", SerialPortException.TYPE_PORT_ALREADY_OPENED);
|
||||
}
|
||||
|
@ -244,7 +244,7 @@ public class SerialPort {
|
|||
* @throws SerialPortException
|
||||
*/
|
||||
public boolean purgePort(int flags) throws SerialPortException {
|
||||
log("purgePort " + flags);
|
||||
log("purgePort flags=" + flags);
|
||||
checkPortOpened("purgePort()");
|
||||
return serialInterface.purgePort(portHandle, flags);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue