summaryrefslogtreecommitdiffhomepage
path: root/digital/avr/modules/flash/flash.c
diff options
context:
space:
mode:
authorNélio Laranjeiro2008-10-21 22:49:47 +0200
committerNélio Laranjeiro2008-10-21 22:49:47 +0200
commitd32e50b442424aa8c8618763d9f9851527a8555a (patch)
tree82615088e2c1d52229051e423dd687db5ac90422 /digital/avr/modules/flash/flash.c
parent62dea0dc173ece90867f2aabd0af63c353517bfd (diff)
avr/module/flash: Tested the find next sector. closes #36
* removed the define to increment the addr. * Update the test.
Diffstat (limited to 'digital/avr/modules/flash/flash.c')
-rw-r--r--digital/avr/modules/flash/flash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/digital/avr/modules/flash/flash.c b/digital/avr/modules/flash/flash.c
index db5645aa..69277266 100644
--- a/digital/avr/modules/flash/flash.c
+++ b/digital/avr/modules/flash/flash.c
@@ -152,7 +152,7 @@ flash_sector_next (uint32_t addr)
/* Search for the next address to start writing. */
for (addr = FLASH_PAGE (addr);
(rsp != 0xFF) && (addr < FLASH_ADDRESS_HIGH);
- addr += FLASH_PAGE_SIZE - 1)
+ addr += FLASH_PAGE_SIZE)
{
rsp = flash_read (addr);
}