summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
authorMaarten van der Schrieck <maarten@thingsconnected.nl>2023-10-24 23:10:45 +0200
committerDamien George <damien@micropython.org>2023-12-22 10:26:52 +1100
commit91ee8ac89405b7d063f334100b7ed0394d69fe02 (patch)
tree79041f04198ad3d913511a8fd0f4a449b734a5d7 /py
parent5d28bb4adb24094917038a506248ff7fb351ac44 (diff)
extmod/os_dupterm: Let mp_os_dupterm_tx_strn() return num bytes written.
In case of multiple outputs, the minimum successful write length is returned. In line with this, in case any output has a write error, zero is returned. In case of no outputs, -1 is returned. The return value can be used to assess whether writes were attempted, and if so, whether they succeeded. Signed-off-by: Maarten van der Schrieck <maarten@thingsconnected.nl>
Diffstat (limited to 'py')
0 files changed, 0 insertions, 0 deletions