Make communication timeout configurable

This commit is contained in:
wh201906 committed 2023-07-05 22:44:59 +08:00
1 parent 9c947eddcd
commit b74c5db4f9
4 files changed
+57 -2

No files matched your search

+4
View File
@@ -69,6 +69,10 @@ int uart_reconfigure_timeouts(uint32_t value) {
return PM3_SUCCESS;
}
uint32_t uart_get_timeouts(void) {
return newtimeout_value;
}
serial_port uart_open(const char *pcPortName, uint32_t speed) {
serial_port_unix_t_t *sp = calloc(sizeof(serial_port_unix_t_t), sizeof(uint8_t));