mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-13 18:57:12 +08:00
fixes..
This commit is contained in:
parent
e1063e2836
commit
7ee6125ef6
1 changed files with 3 additions and 3 deletions
|
@ -70,11 +70,11 @@ typedef struct {
|
||||||
// see usb_cmd.h
|
// see usb_cmd.h
|
||||||
struct timeval timeout = {
|
struct timeval timeout = {
|
||||||
.tv_sec = 0, // 0 second
|
.tv_sec = 0, // 0 second
|
||||||
.tv_usec = UART_FPC_CLIENT_RX_TIMEOUT_US
|
.tv_usec = UART_FPC_CLIENT_RX_TIMEOUT_MS * 1000
|
||||||
};
|
};
|
||||||
|
|
||||||
bool uart_reconfigure_timeouts(serial_port *sp, uint32_t value ) {
|
bool uart_reconfigure_timeouts(serial_port *sp, uint32_t value ) {
|
||||||
timeout.usec = value * 1000;
|
timeout.tv_usec = value * 1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
serial_port uart_open(const char *pcPortName, uint32_t speed) {
|
serial_port uart_open(const char *pcPortName, uint32_t speed) {
|
||||||
|
@ -91,7 +91,7 @@ serial_port uart_open(const char *pcPortName, uint32_t speed) {
|
||||||
return INVALID_SERIAL_PORT;
|
return INVALID_SERIAL_PORT;
|
||||||
}
|
}
|
||||||
|
|
||||||
timeout.tv_usec = UART_TCP_CLIENT_RX_TIMEOUT_US;
|
timeout.tv_usec = UART_TCP_CLIENT_RX_TIMEOUT_MS * 1000;
|
||||||
|
|
||||||
char *colon = strrchr(addrstr, ':');
|
char *colon = strrchr(addrstr, ':');
|
||||||
const char *portstr;
|
const char *portstr;
|
||||||
|
|
Loading…
Reference in a new issue