Add libavrdude functions avr_mem_is_flash_type() and avr_mem_is_eeprom_type()

This commit is contained in:
Stefan Rueger
2022-08-15 14:57:04 +01:00
parent e332ecf0b4
commit dfef8bb0a8
7 changed files with 29 additions and 21 deletions

View File

@@ -1213,7 +1213,7 @@ int main(int argc, char * argv [])
m = avr_locate_mem(p, upd->memtype);
if (m == NULL)
continue;
if ((strcasecmp(m->desc, memname) == 0) && (upd->op == DEVICE_WRITE)) {
if ((strcmp(m->desc, memname) == 0) && (upd->op == DEVICE_WRITE)) {
erase = 1;
if (quell_progress < 2) {
avrdude_message(MSG_INFO, "%s: NOTE: \"%s\" memory has been specified, an erase cycle "