fix: passing a struct.

This commit is contained in:
iceman1001
2019-04-30 22:03:20 +02:00
parent e6315b88a1
commit f8f39d6196
5 changed files with 7 additions and 6 deletions

View File

@@ -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;

View File

@@ -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;
}