Ticket #22867: patch-ser_avrdoper.c.diff

File patch-ser_avrdoper.c.diff, 1.0 KB (added by ranauei@…, 15 years ago)
  • ser_avrdoper.c

    old new  
    1919 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    2020 */
    2121
    22 /* $Id: ser_avrdoper.c 837 2009-07-10 22:48:48Z joerg_wunsch $ */
     22/* $Id: ser_avrdoper.c 845 2009-10-10 01:41:40Z mludvig $ */
    2323
    2424/*
    2525 * Serial Interface emulation for USB programmer "AVR-Doper" in HID mode.
     
    634634
    635635/* ------------------------------------------------------------------------- */
    636636
     637static int avrdoper_set_dtr_rts(union filedescriptor *fdp, int is_on)
     638{
     639        fprintf(stderr, "%s: AVR-Doper doesn't support DTR/RTS setting\n", progname);
     640    return -1;
     641}
     642
     643/* ------------------------------------------------------------------------- */
     644
    637645struct serial_device avrdoper_serdev =
    638646{
    639647  .open = avrdoper_open,
     
    641649  .send = avrdoper_send,
    642650  .recv = avrdoper_recv,
    643651  .drain = avrdoper_drain,
     652  .set_dtr_rts = avrdoper_set_dtr_rts,
    644653  .flags = SERDEV_FL_NONE,
    645654};
    646655