aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-09-06 14:06:43 +0000
committerbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-09-06 14:06:43 +0000
commitcd04106a830e70037225f9c7e312984a97447a3f (patch)
treeaa0cb5b693c81635ad7c75ceaf5494790a9ef20f
parentc14c1959b1186bc79dd223f0a744a8220874bc5a (diff)
downloadChibiOS-cd04106a830e70037225f9c7e312984a97447a3f.tar.gz
ChibiOS-cd04106a830e70037225f9c7e312984a97447a3f.tar.bz2
ChibiOS-cd04106a830e70037225f9c7e312984a97447a3f.zip
Added date/time of build in "info" screen.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3291 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r--os/various/shell.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/os/various/shell.c b/os/various/shell.c
index d47df283d..5f2fc760b 100644
--- a/os/various/shell.c
+++ b/os/various/shell.c
@@ -103,6 +103,11 @@ static void cmd_info(BaseChannel *chp, int argc, char *argv[]) {
#ifdef BOARD_NAME
chprintf(chp, "Board: %s\r\n", BOARD_NAME);
#endif
+#ifdef __DATE__
+#ifdef __TIME__
+ chprintf(chp, "Build time: %s%s%s\r\n", __DATE__, " - ", __TIME__);
+#endif
+#endif
}
static void cmd_systime(BaseChannel *chp, int argc, char *argv[]) {