fix: passing a struct.
This commit is contained in:
@@ -608,7 +608,7 @@ int TestProxmark(void) {
|
||||
|
||||
// reconfigure.
|
||||
if ( conn.send_via_fpc == false ) {
|
||||
uart_reconfigure_timeouts(&sp, UART_USB_CLIENT_RX_TIMEOUT_MS );
|
||||
uart_reconfigure_timeouts(sp, UART_USB_CLIENT_RX_TIMEOUT_MS );
|
||||
}
|
||||
|
||||
return PM3_SUCCESS;
|
||||
|
||||
@@ -157,7 +157,7 @@ main_loop(char *script_cmds_file, char *script_cmd, bool pm3_present) {
|
||||
// clear array
|
||||
memset(script_cmd_buf, 0, sizeof(script_cmd_buf));
|
||||
// get
|
||||
if (!fgets(script_cmd_buf, sizeof(script_cmd_buf), stdin)) {
|
||||
if (fgets(script_cmd_buf, sizeof(script_cmd_buf), stdin) == NULL) {
|
||||
PrintAndLogEx(ERR, "STDIN unexpected end, exit...");
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user