Your ROOT_URL in app.ini is https://source.parasitstudio.de:63000/ but you are visiting https://source.parasitstudio.de/wirtz/AutoConnect/commit/82f898fab58cec15a85f01f2b99027e4d4debb78 You should set ROOT_URL correctly, otherwise the web may not work correctly.

Added the existence check of PSRAM

pull/123/head
Hieromon Ikasamo 6 years ago
parent f5c2bf27de
commit 82f898fab5
  1. 9
      src/AutoConnectJsonDefs.h

@ -42,7 +42,14 @@ using ArduinoJsonArray = JsonArray;
// JsonDocument is assigned to PSRAM by ArduinoJson's custom allocator.
struct SpiRamAllocatorST {
void* allocate(size_t size) {
return heap_caps_malloc(size, MALLOC_CAP_SPIRAM);
uint32_t caps;
if (psramFound())
caps = MALLOC_CAP_SPIRAM;
else {
caps = MALLOC_CAP_8BIT;
AC_DBG("PSRAM not found, JSON buffer allocates to the heap.\n");
}
return heap_caps_malloc(size, caps);
}
void deallocate(void* pointer) {
heap_caps_free(pointer);

Loading…
Cancel
Save