rem: avr910_send(pgm, "y", 1); avr910_vfy_cmd_sent(pgm, "clear LED");
add: avr910_write_setup(pgm, p, m);
context: static int avr910_paged_write_flash(PROGRAMMER * pgm, AVRPART * p, AVRMEM * m,                                     int page_size, int n_bytes){  unsigned char cmd[] = {'c', 'C'};  unsigned char buf[2];  unsigned int addr = 0;  unsigned int max_addr = n_bytes;  /*   * For some reason, if we don't do this when writing to flash, the first   * byte of flash is not programmed. I susect that the board got out of sync   * after the erase and sending another command gets us back in sync. -TRoth   */  avr910_send(pgm, "y", 1);  avr910_vfy_cmd_sent(pgm, "clear LED");  avr910_set_addr(pgm, addr>>1);  while (addr < max_addr) {    buf[0] = cmd[addr & 0x01];    buf[1] = m->buf[addr];    avr910_send(pgm, buf, sizeof(buf));    avr910_vfy_cmd_sent(pgm, "write byte");    addr++;    if ((has_auto_incr_addr != 'Y') && ((addr & 0x01) == 0)) {      avr910_set_addr(pgm, addr>>1);    }  }  return addr;}