Open josschne opened 5 years ago
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)
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.