Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to accept input #6

Open
josschne opened this issue Dec 27, 2018 · 1 comment
Open

Unable to accept input #6

josschne opened this issue Dec 27, 2018 · 1 comment

Comments

@josschne
Copy link

I have an NRF device with CLI over RTT. If I connect using JLinkRTTClient or RTTViewer (on Windows), I can interact with the prompt. However using pyrtt-viewer, the device does not appear to receive input. I can see output coming out, so RTT is connected, but any input is not received by the device.

I attempted this on both Mac OSX (High Sierra) and Windows 10. Both behaved the same.

@amb-silvertree
Copy link

Not sure on which systems this is valid or not, but for others, I fixed this by removing the ".strip()" from my local copy of the _writer function:

def _writer(self):
        while not self._close_event.is_set():
            data = sys.stdin.readline()
            if len(data) > 0:
                self._nrf.rtt_write(self._args.channel, data)
                # Yield
            time.sleep(0.1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants