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