flasher: skip msg about --force when --force is used

This commit is contained in:
Philippe Teuwen 2022-02-25 00:37:54 +01:00
commit 21089fc346

View file

@ -356,10 +356,10 @@ int flash_load(flash_file_t *ctx, bool force) {
// We could not find proper version_information // We could not find proper version_information
if (res == PM3_EUNDEF) if (res == PM3_EUNDEF)
PrintAndLogEx(WARNING, "Unable to check version_information"); PrintAndLogEx(WARNING, "Unable to check version_information");
PrintAndLogEx(INFO, "Make sure to flash a correct and up-to-date version");
PrintAndLogEx(INFO, "You can force flashing this firmware by using the option '--force'");
if (force) if (force)
return PM3_SUCCESS; return PM3_SUCCESS;
PrintAndLogEx(INFO, "Make sure to flash a correct and up-to-date version");
PrintAndLogEx(INFO, "You can force flashing this firmware by using the option '--force'");
fail: fail:
flash_free(ctx); flash_free(ctx);
return res; return res;