fxsdk/fxlink
Lephenixnoir 85d7fcf9e9
libfxlink: fix race condition leading to lost messages
Basically if the calculator sends two messages in a row, it is possible
for a single libusb_handle_events() to get both. And the comm structure
wasn't designed for that, because it could buffer only one message at a
time, which the user needed to read after event handling.

The comm structure now has a 16-message buffer, which should be more
than enough for any single event handling loop. On the user level this
has implications in that fxlink_device_finish_bulk_IN() must be called
*in a loop* after each event handling cycle.

Reported in https://git.planet-casio.com/Lephenixnoir/gint/pulls/27
2024-03-24 19:25:35 +01:00
..
include/fxlink split fxlink into library (not installed yet) and executable 2023-03-26 12:20:50 +02:00
modes fxlink: add --folder option to fxlink -s to select output folder 2024-01-30 22:19:19 +01:00
tooling fxlink: add (unused) scale parameter to SDL2 video capture 2024-01-21 21:05:36 +01:00
tui libfxlink: fix race condition leading to lost messages 2024-03-24 19:25:35 +01:00
fxlink.h fxlink: add --folder option to fxlink -s to select output folder 2024-01-30 22:19:19 +01:00
main.c fxlink: add --folder option to fxlink -s to select output folder 2024-01-30 22:19:19 +01:00