]> git.sur5r.net Git - openocd/commit
fix 'flash protect' and 'flash erase_sector'
authorEric Wetzel <thewetzel@gmail.com>
Thu, 26 Nov 2009 15:54:45 +0000 (07:54 -0800)
committerZachary T Welch <zw@superlucidity.net>
Thu, 26 Nov 2009 15:57:51 +0000 (07:57 -0800)
commit3f8aa3cb035a97988fd38dfb08db5a4224f4b591
tree8cc32952c3dadc183bbf4d5daf0f975420d0ba8c
parent2653b8030722c85393974cd6c0ebcdbd1ae27c72
fix 'flash protect' and 'flash erase_sector'

Command upgrading introduced two off-by-one bugs in the flash commands.
This patch fixes the 'flash {protect,erase_sector}' commands to check
that they have been passed the correct number of arguments.

Ammended during commit to fix help text for 'erase_address' too.
src/flash/flash.c