ftdi: use "adapter usb location" instead of ftdi_location command
[fw/openocd] / src / target / mips32.c
index abb42559617cff9423b533b3e0e492f37ad21ac4..9ac2507a3479518f72db6116ce22d69c296731b7 100644 (file)
@@ -461,6 +461,8 @@ int mips32_run_algorithm(struct target *target, int num_mem_params,
        }
 
        for (int i = 0; i < num_mem_params; i++) {
+               if (mem_params[i].direction == PARAM_IN)
+                       continue;
                retval = target_write_buffer(target, mem_params[i].address,
                                mem_params[i].size, mem_params[i].value);
                if (retval != ERROR_OK)