altos: Need to use 16-bit counts for ao_xmem functions
authorKeith Packard <keithp@keithp.com>
Fri, 14 Sep 2012 23:56:04 +0000 (16:56 -0700)
committerKeith Packard <keithp@keithp.com>
Fri, 14 Sep 2012 23:56:04 +0000 (16:56 -0700)
commit31f5a02654cbf172beed25f4c518dfb7be8c714e
treefdcced87163a7138335a61f9a6562c0afa020522
parentb898cf0a2abf2b0478d5afc5aca030c6b4c8bd0b
altos: Need to use 16-bit counts for ao_xmem functions

Trying to use 8-bit counts is a nice optimization which fails when the
count is larger than 255, as is the case with clearing the flash block
in the AT45 driver. This bug resulted in the inability to erase
flights on TeleMetrum v1.0 boards.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/cc1111/ao_arch.h
src/cc1111/ao_string.c