This commit is contained in:
Philippe Teuwen
2019-05-01 01:38:52 +02:00
parent 5801cfa4a8
commit 4f11ef048f
11 changed files with 38 additions and 38 deletions

View File

@@ -107,6 +107,6 @@ uint32_t uart_get_speed(const serial_port sp);
/* Reconfigure timeouts
*/
int uart_reconfigure_timeouts(serial_port sp, uint32_t value );
int uart_reconfigure_timeouts(serial_port sp, uint32_t value);
#endif // _UART_H_

View File

@@ -73,7 +73,7 @@ struct timeval timeout = {
.tv_usec = UART_FPC_CLIENT_RX_TIMEOUT_MS * 1000
};
int uart_reconfigure_timeouts(serial_port sp, uint32_t value ) {
int uart_reconfigure_timeouts(serial_port sp, uint32_t value) {
timeout.tv_usec = value * 1000;
return PM3_SUCCESS;
}

View File

@@ -49,7 +49,7 @@ typedef struct {
} serial_port_windows;
int uart_reconfigure_timeouts(serial_port sp, uint32_t value) {
serial_port_windows *spw;
spw = (serial_port_windows *)sp;
spw->ct.ReadIntervalTimeout = value;
@@ -152,7 +152,7 @@ bool uart_set_speed(serial_port sp, const uint32_t uiPortSpeed) {
PurgeComm(spw->hPort, PURGE_RXABORT | PURGE_RXCLEAR);
if (result)
conn.uart_speed = uiPortSpeed;
return result;
}