We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3304a41 + 3d58426 commit e5a1a9fCopy full SHA for e5a1a9f
components/finsh/shell.h
@@ -33,7 +33,17 @@
33
#include <rtthread.h>
34
#include "finsh.h"
35
36
-#define FINSH_USING_HISTORY
+/* For historical reasons, users don't define FINSH_USING_HISTORY in rtconfig.h
37
+ * but expect the history feature. So you sould define FINSH_USING_HISTORY to 0
38
+ * to disable it from the rtconfig.h. */
39
+#ifdef FINSH_USING_HISTORY
40
+# if FINSH_USING_HISTORY == 0
41
+# undef FINSH_USING_HISTORY
42
+# endif
43
+#else
44
+# define FINSH_USING_HISTORY
45
+#endif
46
+
47
#ifndef FINSH_THREAD_PRIORITY
48
#define FINSH_THREAD_PRIORITY 20
49
#endif
0 commit comments