Fix candidate for EEPROM writing issue
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/branches/serialupdi@1520 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
parent
189f829c3f
commit
dc846ba7e8
|
@ -437,6 +437,11 @@ static int serialupdi_write_byte(PROGRAMMER * pgm, AVRPART * p, AVRMEM * mem,
|
||||||
if (strstr(mem->desc, "fuse") != 0) {
|
if (strstr(mem->desc, "fuse") != 0) {
|
||||||
return updi_nvm_write_fuse(pgm, p, mem->offset + addr, value);
|
return updi_nvm_write_fuse(pgm, p, mem->offset + addr, value);
|
||||||
}
|
}
|
||||||
|
if (strcmp(mem->desc, "eeprom") == 0) {
|
||||||
|
unsigned char buffer[1];
|
||||||
|
buffer[0]=value;
|
||||||
|
return updi_nvm_write_eeprom(pgm, p, mem->offset + addr, buffer, 1);
|
||||||
|
}
|
||||||
return updi_write_byte(pgm, mem->offset + addr, value);
|
return updi_write_byte(pgm, mem->offset + addr, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue