circuitpython/supervisor/shared
Jeff Epler dc77f3146f serial_bytes_available: don't double-count bytes on usb cdc
In 9.0.x, serial_bytes_available returned a bool and tud_cdc_available was
harmlessly checked twice for any characters.

When the routine was changed to return an int, the double checking led to
over-reporting the number of characters available. In code that would attempt
to read this many bytes from sys.stdin, this made the read call block since
only 1 byte was actually available.

This behavior came up in the discussion of #9393. I don't mark this bug as
closing that one, because that issue seems to be reporting multiple things that
this change would not address, such as delays in `sys.stdout.write()` or
problems seen while using webserial.
2024-07-03 11:36:30 -05:00
..
bluetooth Fix BLE adv timeout; ESP: don't sched handler on adv finish 2024-07-02 12:13:20 -04:00
external_flash CircuitPython files: replace STATIC with static 2024-05-20 11:02:17 -04:00
translate CircuitPython files: replace STATIC with static 2024-05-20 11:02:17 -04:00
usb CircuitPython files: replace STATIC with static 2024-05-20 11:02:17 -04:00
web_workflow web_workflow.c: use absolute path 2024-06-05 23:29:47 -04:00
background_callback.c CircuitPython files: replace STATIC with static 2024-05-20 11:02:17 -04:00
board.c update headers of most CircuitPython-only files 2024-05-17 14:56:28 -04:00
board.h guard2once -s ... 2024-05-19 20:40:44 -04:00
cpu.c update headers of most CircuitPython-only files 2024-05-17 14:56:28 -04:00
cpu.h guard2once -s ... 2024-05-19 20:40:44 -04:00
display.c update headers of most CircuitPython-only files 2024-05-17 14:56:28 -04:00
display.h guard2once -s ... 2024-05-19 20:40:44 -04:00
fatfs.c update headers of most CircuitPython-only files 2024-05-17 14:56:28 -04:00
filesystem.c Further fix to use absolute paths in remote workflows 2024-06-06 16:56:24 -04:00
flash.c CircuitPython files: replace STATIC with static 2024-05-20 11:02:17 -04:00
internal_flash.h guard2once -s ... 2024-05-19 20:40:44 -04:00
lock.c update headers of most CircuitPython-only files 2024-05-17 14:56:28 -04:00
lock.h guard2once -s ... 2024-05-19 20:40:44 -04:00
memory.c update headers of most CircuitPython-only files 2024-05-17 14:56:28 -04:00
micropython.c update headers of most CircuitPython-only files 2024-05-17 14:56:28 -04:00
port.c update headers of most CircuitPython-only files 2024-05-17 14:56:28 -04:00
reload.c update headers of most CircuitPython-only files 2024-05-17 14:56:28 -04:00
reload.h guard2once -s ... 2024-05-19 20:40:44 -04:00
rgb_led_colors.h add #pragma once to all CircuitPython header files without any include guards 2024-05-19 20:38:07 -04:00
safe_mode.c Improve ESP BLE and turn on BLE workflow 2024-06-11 16:21:40 -07:00
safe_mode.h guard2once -s ... 2024-05-19 20:40:44 -04:00
serial.c serial_bytes_available: don't double-count bytes on usb cdc 2024-07-03 11:36:30 -05:00
serial.h guard2once -s ... 2024-05-19 20:40:44 -04:00
stack.c update headers of most CircuitPython-only files 2024-05-17 14:56:28 -04:00
stack.h update headers of most CircuitPython-only files 2024-05-17 14:56:28 -04:00
status_bar.c update headers of most CircuitPython-only files 2024-05-17 14:56:28 -04:00
status_bar.h update headers of most CircuitPython-only files 2024-05-17 14:56:28 -04:00
status_leds.c update headers of most CircuitPython-only files 2024-05-17 14:56:28 -04:00
status_leds.h guard2once -s ... 2024-05-19 20:40:44 -04:00
tick.c update headers of most CircuitPython-only files 2024-05-17 14:56:28 -04:00
tick.h guard2once -s ... 2024-05-19 20:40:44 -04:00
traceback.c update headers of most CircuitPython-only files 2024-05-17 14:56:28 -04:00
traceback.h add #pragma once to all CircuitPython header files without any include guards 2024-05-19 20:38:07 -04:00
workflow.c Merge pull request #9344 from tannewt/disable_ble_completely 2024-06-18 17:01:10 -04:00
workflow.h update headers of most CircuitPython-only files 2024-05-17 14:56:28 -04:00