diff options
author | Ayke van Laethem <aykevanlaethem@gmail.com> | 2017-12-19 23:54:24 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2018-01-10 19:14:46 +1100 |
commit | a275cb0f487cd6517760271dc01d369c32600c63 (patch) | |
tree | 1a09799169bc4ffcb3d55b8edaf22553b5adbd9e /py/formatfloat.c | |
parent | bb3412291a0f88cb958852b268d5dc43db23d4fb (diff) |
drivers/sdcard: Avoid allocation on the heap.
This commit fixes two things:
1. Do not allocate on the heap in readblocks() - unless the block size
is bigger than 512 bytes.
2. Raise an error instead of returning 1 to indicate an error: the FAT
block device layer does not check the return value. And other
backends (e.g. esp32 blockdev) also raise an error instead of
returning non-zero.
Diffstat (limited to 'py/formatfloat.c')
0 files changed, 0 insertions, 0 deletions