Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed Watchdog SDFileSystem DigoleSerialDisp
Diff: UI/shell.cpp
- Revision:
- 15:01fb4916a5cd
- Parent:
- 12:5dfa1ab47838
- Child:
- 22:dc54ca6e6eec
--- a/UI/shell.cpp Thu Nov 29 16:59:39 2018 +0000
+++ b/UI/shell.cpp Thu Nov 29 17:11:34 2018 +0000
@@ -16,7 +16,7 @@
char buf[MAXBUF];
char path[MAXBUF];
int status;
-bool debug=false;
+bool _debug=false;
bool done=false;
typedef struct {
@@ -249,7 +249,7 @@
basename[k-(sep+1)] = path[k];
basename[k-sep] = 0;
}
- //if (debug) fprintf(stdout, "d:<%s> b:<%s>\n", dirname, basename);
+ //if (_debug) fprintf(stdout, "d:<%s> b:<%s>\n", dirname, basename);
}
@@ -258,7 +258,7 @@
* lists files in the current working directory, 4 columns
*/
int dols(char *arg) {
- //if (debug) fprintf(stdout, "%s\n", cwd);
+ //if (_debug) fprintf(stdout, "%s\n", cwd);
DIR *d;
struct dirent *p;
@@ -435,10 +435,10 @@
}
/** dodebug
- * toggle the debug state variable
+ * toggle the _debug state variable
*/
int dodebug(char *arg) {
- debug = !debug;
+ _debug = !_debug;
return 0;
}
@@ -503,7 +503,8 @@
fputs("angle=", stdout);
printFloat(stdout, v, 4);
fputs(" servo=", stdout);
- setSteering(v);
+ // TODO fix setSteering call
+ //setSteering(v);
// TODO 4 printFloat(stdout, getSteering(), 4);
fputc('\n', stdout);
return 0;