From f74e9b02a81dfa50afe1252f341c02c5eec1646e Mon Sep 17 00:00:00 2001 From: Nathael Pajani Date: Mon, 21 May 2012 19:10:13 +0200 Subject: [PATCH] Adding quiet arg to isp_send_cmd_sectors --- isp_commands.c | 4 ++-- isp_commands.h | 2 +- isp_wrapper.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/isp_commands.c b/isp_commands.c index b073f5c..e43f518 100644 --- a/isp_commands.c +++ b/isp_commands.c @@ -611,7 +611,7 @@ int isp_send_cmd_go(uint32_t addr, char mode) return 0; } -int isp_send_cmd_sectors(char* name, char cmd, int first_sector, int last_sector) +int isp_send_cmd_sectors(char* name, char cmd, int first_sector, int last_sector, int quiet) { char buf[SERIAL_BUFSIZE]; int ret = 0, len = 0; @@ -638,7 +638,7 @@ int isp_send_cmd_sectors(char* name, char cmd, int first_sector, int last_sector printf("Error reading %s result.\n", name); return -4; } - ret = isp_ret_code(buf, NULL, 0); + ret = isp_ret_code(buf, NULL, quiet); return ret; } diff --git a/isp_commands.h b/isp_commands.h index 8f6e3d3..6f149ee 100644 --- a/isp_commands.h +++ b/isp_commands.h @@ -50,7 +50,7 @@ int isp_connect(unsigned int crystal_freq, int quiet); int isp_send_cmd_no_args(char* cmd_name, char* cmd, int quiet); int isp_send_cmd_two_args(char* cmd_name, char cmd, unsigned int arg1, unsigned int arg2); int isp_send_cmd_address(char cmd, uint32_t addr1, uint32_t addr2, uint32_t length, char* name); -int isp_send_cmd_sectors(char* name, char cmd, int first_sector, int last_sector); +int isp_send_cmd_sectors(char* name, char cmd, int first_sector, int last_sector, int quiet); int isp_cmd_unlock(int quiet); diff --git a/isp_wrapper.c b/isp_wrapper.c index b7898ef..dca4c51 100644 --- a/isp_wrapper.c +++ b/isp_wrapper.c @@ -314,7 +314,7 @@ int isp_cmd_sectors_skel(int arg_count, char** args, char* name, char cmd) printf("%s command called for sectors %lu to %lu.\n", name, first_sector, last_sector); } - ret = isp_send_cmd_sectors(name, cmd, first_sector, last_sector); + ret = isp_send_cmd_sectors(name, cmd, first_sector, last_sector, 0); return ret; } -- 2.43.0