diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2013-08-16 21:55:09 +0200 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2013-08-16 21:59:16 +0200 |
commit | c13f21a4d5c27c638c9f0dedf6d7b1f9bbb4d682 (patch) | |
tree | adb89891d67225cc7a509979b5a2dc062fafe6c4 /firmware/usbstack | |
parent | 630a166a94282d9d0211d6cc77d70b9d384c1d06 (diff) |
Fix logdisk
The code was broken in a subtle but crucial way: storage idle
callbacks are oneshot so after the first flush everything would
stay in the buffer forever and would never be written to the disk
thus resulting into many events being lost. This changed correctly
registers the idle callback each time the buffer is not empty.
Note that the idle storage code checks if a callback
has is in the queue already so we don't register twice.
Change-Id: Ifdf331d4b757e05b8a6902bf5926cbc7689f5109
Diffstat (limited to 'firmware/usbstack')
0 files changed, 0 insertions, 0 deletions