1
0
mirror of git://projects.qi-hardware.com/antorcha.git synced 2024-11-29 18:55:53 +02:00
Commit Graph

5 Commits

Author SHA1 Message Date
Werner Almesberger
2bac5e74a7 fw/image.c (image_first): call image_more to process the payload
This makes things work also for zero-sized files. I.e.,

./antorcha /dev/null

does precisely what one would expect. (Before, the transfer was
accepted, but the first salt block became the new image.)
2012-06-20 18:39:29 -03:00
Werner Almesberger
2011c515c8 fw/: pass limit also to "first" function of protocol handlers 2012-06-20 18:37:13 -03:00
Werner Almesberger
c6fc8190de fw/image.c: fix use of hash functions; make image pointer setup more readable
It was almost impossible NOT to read

next_image = p = image == images[0] ? ...
                      ^^^^
as if it was

next_image = p = image = images[0] ? ...
                      ^^^
2012-06-20 16:51:40 -03:00
Werner Almesberger
87cc67d5f7 fw/: add image data upload (completely untested) 2012-06-20 10:30:40 -03:00
Werner Almesberger
6223a58552 fw/: move image data from sweep.[ch] to new image.[ch] 2012-06-20 07:45:04 -03:00