In flip2_initialize(), check user is running on an Xmega
device. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1260 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
parent
c049e794dc
commit
a8b4b59e82
|
@ -1,3 +1,8 @@
|
||||||
|
2014-01-16 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
|
||||||
|
|
||||||
|
* flip.c (flip2_initialize): Check user is running on an Xmega
|
||||||
|
device.
|
||||||
|
|
||||||
2014-01-15 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
|
2014-01-15 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
|
||||||
|
|
||||||
* flip.c: Added some verbose-level messages (-vv)
|
* flip.c: Added some verbose-level messages (-vv)
|
||||||
|
|
9
flip.c
9
flip.c
|
@ -234,6 +234,15 @@ int flip2_initialize(PROGRAMMER* pgm, AVRPART *part)
|
||||||
vid = (pgm->usbvid != 0) ? pgm->usbvid : USB_VENDOR_ATMEL;
|
vid = (pgm->usbvid != 0) ? pgm->usbvid : USB_VENDOR_ATMEL;
|
||||||
pid = (pgm->usbpid != 0) ? pgm->usbpid : part->usbpid;
|
pid = (pgm->usbpid != 0) ? pgm->usbpid : part->usbpid;
|
||||||
|
|
||||||
|
if (!ovsigck && !(part->flags & AVRPART_HAS_PDI)) {
|
||||||
|
fprintf(stderr,
|
||||||
|
"%s: \"flip2\" (FLIP protocol version 2) is for Xmega devices.\n"
|
||||||
|
"%s For AT90USB* or ATmega*U* devices, use \"flip1\".\n"
|
||||||
|
"%s (Use -F to bypass this check.)\n",
|
||||||
|
progname, progbuf, progbuf);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
result = dfu_init(FLIP2(pgm)->dfu, vid, pid);
|
result = dfu_init(FLIP2(pgm)->dfu, vid, pid);
|
||||||
|
|
||||||
if (result != 0)
|
if (result != 0)
|
||||||
|
|
Loading…
Reference in New Issue