Various fixes and improvements (#177)
- Remove custom `ESP_TARGET` and use `ESP_PLATFORM` everywhere - Add `Loader` service functionality to `tt::app::` namespace - Make `Loader` `PubSub` usable by exposing the messages - Add board type to crash log - Don't show SD card in Files app when it's not mounted - Set default SPI frequency for SD cards - Move TT_VERSION to scope that works for sim too - Log Tactility version and board on boot - Rename "Yellow Board" to "CYD 2432S024C"
This commit is contained in:
committed by
GitHub
parent
97b8007aca
commit
12a9839420
@@ -1,4 +1,4 @@
|
||||
#ifdef ESP_TARGET
|
||||
#ifdef ESP_PLATFORM
|
||||
|
||||
#include "app/crashdiagnostics/QrUrl.h"
|
||||
|
||||
@@ -8,6 +8,8 @@
|
||||
#include <sstream>
|
||||
#include <esp_cpu_utils.h>
|
||||
|
||||
#include <sdkconfig.h>
|
||||
|
||||
std::string getUrlFromCrashData() {
|
||||
auto crash_data = getRtcCrashData();
|
||||
auto* stack_buffer = (uint32_t*) malloc(crash_data.callstackLength * 2 * sizeof(uint32_t));
|
||||
@@ -28,6 +30,7 @@ std::string getUrlFromCrashData() {
|
||||
stream << "https://oops.tactility.one";
|
||||
stream << "?v=" << TT_VERSION; // Version
|
||||
stream << "&a=" << CONFIG_IDF_TARGET; // Architecture
|
||||
stream << "&b=" << CONFIG_TT_BOARD_ID; // Board identifier
|
||||
stream << "&s="; // Stacktrace
|
||||
|
||||
for (int i = crash_data.callstackLength - 1; i >= 0; --i) {
|
||||
|
||||
Reference in New Issue
Block a user