Skip to content
Commit 898a59eb authored by Hunter Searle's avatar Hunter Searle Committed by Carles Cufí
Browse files

Shell: Edit shell to store/retrieve return values



This change to the shell API enables the user to retrieve the
return code of the most recently run shell command. This is
useful both for users wanting specific information beyond the print
statements in a command, but especially for automated users
that prefer a simple return code to parsing human readable text.
This was tested using all default shell commands, as well as
eeprom, flash, and i2c, where specific errors could be forced.
In all cases, the correct return value was returned by the new
retval command.

Signed-off-by: default avatarHunter Searle <hsearle@xes-inc.com>
parent 7abcfc4e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment