This commit is contained in:
Philippe Teuwen 2019-05-07 20:47:05 +02:00
parent 532dbf28a1
commit bf0ab55833

View file

@ -316,8 +316,7 @@ static int enter_bootloader(char *serial_port_name) {
// Let time to OS to make the port disappear // Let time to OS to make the port disappear
msleep(1000); msleep(1000);
bool opened = OpenProxmark(serial_port_name, true, 60, true, FLASHMODE_SPEED); if (OpenProxmark(serial_port_name, true, 60, true, FLASHMODE_SPEED)) {
if (opened) {
PrintAndLogEx(NORMAL, " " _GREEN_("Found")); PrintAndLogEx(NORMAL, " " _GREEN_("Found"));
return 0; return 0;
} else { } else {
@ -445,6 +444,7 @@ void flash_free(flash_file_t *ctx) {
// just reset the unit // just reset the unit
int flash_stop_flashing(void) { 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); SendCommandOLD(CMD_HARDWARE_RESET, 0, 0, 0, NULL, 0);
msleep(100); msleep(100);
return 0; return 0;