This program is distributed under the GPL, version 2
*/
-/* This programm switches to MPSSE mode, and sets and then reads back
+/* This program switches to MPSSE mode, and sets and then reads back
* the high byte 3 times with three different values.
* The expected read values are hard coded in ftdi_init
* with 0x00, 0x55 and 0xaa
goto do_deinit;
}
ftdi_list_free(&devlist);
- int err = ftdi_usb_purge_buffers(ftdi);
+ int err = ftdi_tcioflush(ftdi);
if (err != 0) {
- fprintf(stderr, "ftdi_usb_purge_buffer: %d: %s\n",
+ fprintf(stderr, "ftdi_tcioflush: %d: %s\n",
err, ftdi_get_error_string(ftdi));
retval = -1;
goto do_deinit;
}
}
if (i < 1) {
- printf("Async read unsuccessfull\n");
+ printf("Async read unsuccessful\n");
}
}
printf("Read %02x %02x %02x\n", data[0], data[1], data[2]);