Improved multi-currency support, improved WebUI checks

This commit is contained in:
Djuri 2024-08-31 23:11:48 +02:00
parent 9c67f769d3
commit 478c951ffb
9 changed files with 249 additions and 31 deletions

View file

@ -48,20 +48,6 @@ const PROGMEM int screens[SCREEN_COUNT] = {
const int usPerSecond = 1000000;
const int usPerMinute = 60 * usPerSecond;
struct SpiRamAllocator : ArduinoJson::Allocator {
void* allocate(size_t size) override {
return heap_caps_malloc(size, MALLOC_CAP_SPIRAM);
}
void deallocate(void* pointer) override {
heap_caps_free(pointer);
}
void* reallocate(void* ptr, size_t new_size) override {
return heap_caps_realloc(ptr, new_size, MALLOC_CAP_SPIRAM);
}
};
struct ScreenMapping {
int value;
const char* name;