Skip to content

armgit / flix

Public Imported from GitHub
0

Making an ESP32-based quadcopter from scratch

Increase buffer for print, make sys output more correct usStackHighWaterMark is not stack size, it's the minimum stack size

Oleg Kalachev59f9528d34e4
diff --git a/flix/cli.ino b/flix/cli.ino
index faeaac3..2f39f29 100644
--- a/flix/cli.ino
+++ b/flix/cli.ino
@@ -57,7 +57,7 @@ const char* motd =
"reboot - reboot the drone\n";
void print(const char* format, ...) {
- char buf[1000];
+ char buf[3000];
va_list args;
va_start(args, format);
vsnprintf(buf, sizeof(buf), format, args);
@@ -173,7 +173,7 @@ void doCommand(String str, bool echo = false) {
print("Free heap: %d\n", ESP.getFreeHeap());
print("Firmware: " __DATE__ " " __TIME__ "\n");
// Print tasks table
- print("Num Task Stack Prio Core CPU%%\n");
+ print("Num Task MinSt Prio Core CPU%%\n");
int taskCount = uxTaskGetNumberOfTasks();
TaskStatus_t *systemState = new TaskStatus_t[taskCount];
uint32_t totalRunTime;