1
0
mirror of git://projects.qi-hardware.com/antorcha.git synced 2024-11-24 23:54:04 +02:00
Commit Graph

9 Commits

Author SHA1 Message Date
Werner Almesberger
69d9013a0d fw/image.c (localize_line): export line format conversion function 2012-07-01 10:20:33 -03:00
Werner Almesberger
6fac517d48 fw/: move secrets to secret.c; rename reset secret to maintenance secret 2012-07-01 10:08:50 -03:00
Werner Almesberger
276ffd7f44 fw/image.* (image_secret): make image_secret global, for future sharing 2012-06-27 02:30:39 -03:00
Werner Almesberger
06f9907cae fw/image.c: put image_secret in PROGMEM to save scarce RAM 2012-06-23 12:01:37 -03:00
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