mikaelpatel / Arduino-Shell

RPN Postscript/Forth Command Shell for Arduino

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug: ShellDemo doesn't appear to work.

dpharris opened this issue · comments

The other demos appear to work fine.

Do you have any more info? Does not compile?

Yes, compiles, prints welcome. Seems to fail on the iom.read() step.
Never makes it to the (added) print(bp):
void loop()
{
Serial.println("."); // works (added)
if (shell.read(bp)) {
Serial.print("==>"); Serial.println(bp); // never gets here (added)
shell.execute(buf);
bp = buf;
}
delay(500); // (added)
}

What board are you using? I tested on Uno and Mega without any problem.

Should try Serial.println(buf) instead. bp points to the end of the input line (0).

Serial Monitor must be in [Newline] mode.

Oh, I think I turned that off .....

On Sun, Mar 6, 2016 at 1:34 PM, Mikael Patel notifications@github.com
wrote:

Serial Monitor must be in [Newline] mode.


Reply to this email directly or view it on GitHub
#30 (comment)
.

Yes, that was the problem! Thanks ... will need to note that.
(( I had forgotten I had disabled it for another program I was working on)).
David

Added some startup info about the [Newline] mode in the example sketches that use read().