Re: [Openocd-development] [PATCH] Enhancement: Allow -1 as last sector for protection and erase

2009-09-21 Thread Johnny Halfmoon
David Brownell wrote: On Sunday 20 September 2009, Johnny Halfmoon wrote: + if ((retval = flash_check_sector_parameters(cmd_ctx, first, last, p-num_sectors)) ! I had in mind more like uint32_t value; Okay. Like this then: = = = = = = = = = = = =

Re: [Openocd-development] [PATCH] Enhancement: Allow -1 as last sector for protection and erase

2009-09-21 Thread Rolf Meeser
Hi Johnny, it should be +if ( first last ) { not +if ( first = last ) { With first=last you can erase a single sector. Regards, Rolf --- Johnny Halfmoon jhalfm...@milksnot.com schrieb am Mo, 21.9.2009: Von: Johnny Halfmoon jhalfm...@milksnot.com Betreff: Re: