auto-sync
This commit is contained in:
parent
926cf7dadf
commit
6210c7b9bb
|
@ -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
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue