mirror of
https://github.com/okalachev/flix.git
synced 2026-06-27 21:46:38 +00:00
Increase buffer for print, make sys output more correct
usStackHighWaterMark is not stack size, it's the minimum stack size
This commit is contained in:
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user