openocd/src
Andrey Yurovsky 08607aefc0 flash: at91samd: fix use of is_erased in check
is_erased can be one of -1, 0, or 1 so it must not be checked like a
boolean value.  In this case we want to erase a page unless we know it's
already erased so we just check for is_erased != 1.

Thanks to Jim Paris for pointing this out on another driver.

Change-Id: I4591186228153b64e5a9608a2aac18745e578d4a
Signed-off-by: Andrey Yurovsky <yurovsky@gmail.com>
Reviewed-on: http://openocd.zylin.com/2368
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2014-11-24 22:18:59 +00:00
..
flash flash: at91samd: fix use of is_erased in check 2014-11-24 22:18:59 +00:00
helper helper: constify log_strings 2014-10-06 11:57:44 +00:00
jtag jtag/drivers/jlink: implement register command to fix SWD 2014-11-24 22:18:30 +00:00
pld update files to correct FSF address 2013-06-05 19:52:42 +00:00
rtos rtos: constify symbol names and lists 2014-10-06 11:57:29 +00:00
server gdb_server: Include current RTOS thread in signal packets 2014-09-29 20:11:59 +00:00
svf Openocd: svf: Add ability to ignore svf_check_tdo errors 2014-07-03 18:08:48 +00:00
target arm_adi_v5: added two CoreSight peripheral IDs 2014-11-03 19:30:59 +00:00
transport transport: emit a warning when a user tries to reselect a transport 2014-08-19 20:19:58 +00:00
xsvf update files to correct FSF address 2013-06-05 19:52:42 +00:00
hello.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
hello.h update files to correct FSF address 2013-06-05 19:52:42 +00:00
main.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
Makefile.am Fix some problems with the bin2char utility 2014-08-02 09:01:32 +00:00
openocd.c Fix some problems with the bin2char utility 2014-08-02 09:01:32 +00:00
openocd.h Fix some problems with the bin2char utility 2014-08-02 09:01:32 +00:00