David Brownell wrote: >> >> + if (last < 0) >> + last = p->num_sectors - 1; >> + >> > > This relies on the lack of error checking for testing "first" > and "last" ... better to add error checking, and then use zero > as the magic number. > Hm - would'nt that trigger when trying to erase only sector 0?
cu Michael _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development