projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ao-tools/ao-load: Return status from 'rewrite'
[fw/altos]
/
ao-tools
/
ao-load
/
ao-load.c
diff --git
a/ao-tools/ao-load/ao-load.c
b/ao-tools/ao-load/ao-load.c
index 0cf03772073c5a503ea5e8364547b42e143e8115..a2de42bc02b3d0672907795c3dae0183dda5f511 100644
(file)
--- a/
ao-tools/ao-load/ao-load.c
+++ b/
ao-tools/ao-load/ao-load.c
@@
-93,6
+93,7
@@
rewrite(struct ao_hex_image *image, unsigned addr, char *data, int len)
printf (" %02x", data[i]);
printf("\n");
memcpy(image->data + addr - image->address, data, len);
printf (" %02x", data[i]);
printf("\n");
memcpy(image->data + addr - image->address, data, len);
+ return 1;
}
static const struct option options[] = {
}
static const struct option options[] = {
@@
-112,8
+113,6
@@
int
main (int argc, char **argv)
{
struct ccdbg *dbg;
main (int argc, char **argv)
{
struct ccdbg *dbg;
- uint8_t status;
- uint16_t pc;
struct ao_hex_file *hex;
struct ao_hex_image *image;
char *filename;
struct ao_hex_file *hex;
struct ao_hex_image *image;
char *filename;