From bf0ab55833f530faf4ef3f4704f8f23cf7905c1b Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Tue, 7 May 2019 20:47:05 +0200 Subject: [PATCH] text --- client/flash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/flash.c b/client/flash.c index 322fc3e49..943b8c8b7 100644 --- a/client/flash.c +++ b/client/flash.c @@ -316,8 +316,7 @@ static int enter_bootloader(char *serial_port_name) { // Let time to OS to make the port disappear msleep(1000); - bool opened = OpenProxmark(serial_port_name, true, 60, true, FLASHMODE_SPEED); - if (opened) { + if (OpenProxmark(serial_port_name, true, 60, true, FLASHMODE_SPEED)) { PrintAndLogEx(NORMAL, " " _GREEN_("Found")); return 0; } else { @@ -445,6 +444,7 @@ void flash_free(flash_file_t *ctx) { // just reset the unit int flash_stop_flashing(void) { + PrintAndLogEx(SUCCESS, _BLUE_("Resetting hardware...") "Subsequent communication error is " _BLUE_("normal")); SendCommandOLD(CMD_HARDWARE_RESET, 0, 0, 0, NULL, 0); msleep(100); return 0;