RTEMS Tools | stty: fix open and read calls (!28)

Ranulfo Raphael (@ranulfo) gitlab at rtems.org
Sat Sep 28 21:18:53 UTC 2024



Ranulfo Raphael created a merge request: https://gitlab.rtems.org/rtems/tools/rtems-tools/-/merge_requests/28

Project:Branches: ranulfo/rtems-tools:stty to rtems/tools/rtems-tools:main
Author:   Ranulfo Raphael




## Summary

This merge request fixes the open() and read() calls for tty devices on rtems tester and run.

Opening a device in 'rw'mode causes:

`error: opening tty dev: /dev/ttyACM0: must have exactly one of create/read/write/append mode`

Reading from device:
```
Exception in thread tty[/dev/ttyACM0]:
[...]
  File "/usr/lib/python3.10/codecs.py", line 321, in decode
    data = self.buffer + input
TypeError: can't concat NoneType to bytes
```

<!-- Default settings, if it is a dropdown it will set after submission -->

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/tools/rtems-tools/-/merge_requests/28
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20240928/bd9e98e6/attachment.htm>


More information about the bugs mailing list