Hi!
I'm using RTT on an Arduino platform, replacing a default Serial output to instead use RTT on user request.
One of the capabilities required by the existing Arduino Stream class (which Serial must support) is a Peek function to obtain the next character of down data, if one is available.
Would it be possible to add a SEGGER_RTT_Peek() [always for terminal] or SEGGER_RTT_Peek(bufferIndex) function?
Here's a draft diff based on RTT version 6.60d ($Rev: 16714 $):
github.com/henrygab/Adafruit_n…11dac11c929c762040f238d12
Thank you for considering this simple proposal.
Henry
I'm using RTT on an Arduino platform, replacing a default Serial output to instead use RTT on user request.
One of the capabilities required by the existing Arduino Stream class (which Serial must support) is a Peek function to obtain the next character of down data, if one is available.
Would it be possible to add a SEGGER_RTT_Peek() [always for terminal] or SEGGER_RTT_Peek(bufferIndex) function?
Here's a draft diff based on RTT version 6.60d ($Rev: 16714 $):
github.com/henrygab/Adafruit_n…11dac11c929c762040f238d12
Thank you for considering this simple proposal.
Henry