mirror of
https://github.com/BotChain-Robots/firmware.git
synced 2026-07-08 17:47:21 +02:00
Fix RIP bugs, add in UART
This commit is contained in:
@@ -69,7 +69,6 @@ std::string RemoteDebugging::get_coredump_summary() {
|
||||
// Panic reason
|
||||
char reason[200] = {};
|
||||
if (esp_core_dump_get_panic_reason(reason, sizeof(reason)) == ESP_OK) {
|
||||
ESP_LOGI(TAG, "Panic reason: %s", reason);
|
||||
out += "Panic reason: ";
|
||||
out += reason;
|
||||
out += "\n";
|
||||
@@ -88,8 +87,6 @@ std::string RemoteDebugging::get_coredump_summary() {
|
||||
summary->ex_info.exc_vaddr);
|
||||
out += line;
|
||||
|
||||
ESP_LOGI(TAG, "%s", line);
|
||||
|
||||
// Backtrace
|
||||
out += "Backtrace:";
|
||||
for (uint32_t i = 0; i < summary->exc_bt_info.depth && i < 16; i++) {
|
||||
@@ -102,8 +99,6 @@ std::string RemoteDebugging::get_coredump_summary() {
|
||||
}
|
||||
out += "\n";
|
||||
|
||||
ESP_LOGI(TAG, "Backtrace: %s", out);
|
||||
|
||||
free(summary);
|
||||
return out;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user