The camera-image example didn't work (it was just a typo in the timeout wait). I took the chance to improve performance and catch some errors.
Changes:
No more conversion from RGB565 to RGB8 (now we only rotate the image directly to the framebuffer).
The example now only flushes the image once it gets shot, and not every frame (CPU rendering created a lot of latency).
Removed all needless allocations. We allocated around 384000 bytes each time a photo was shot. Now we allocate only once at the start.
The svc timeout wasn't considered an error (it took me some time to debug it). We should probably handle those cases in a separate svc module PR (which we were already talking about), but for now it correctly returns the error.
I've also documented some edge cases that cause ARM exceptions when using svc, it was a learning experience!
The camera-image example didn't work (it was just a typo in the timeout wait). I took the chance to improve performance and catch some errors.
Changes:
svc
timeout wasn't considered an error (it took me some time to debug it). We should probably handle those cases in a separatesvc
module PR (which we were already talking about), but for now it correctly returns the error.svc
, it was a learning experience!Tell me what you think 😄