minor fixes for restoring warning-less emulation on host for debugging (using emuAsync, see main readme)

This commit is contained in:
David Gauchard 2023-09-06 22:35:41 +02:00
parent 679a3b5a8d
commit 68c251226d
5 changed files with 9 additions and 5 deletions

View File

@ -35,7 +35,7 @@
#warning use decorators: { HeapSelectIram doAllocationsInIRAM; ESPUI.addControl(...) ... } (cf. https://arduino-esp8266.readthedocs.io/en/latest/mmu.html#how-to-select-heap)
#warning then check http://<ip>/heap
#endif // MMU_IRAM_HEAP
#ifndef DEBUG_ESP_OOM
#if !defined(DEBUG_ESP_OOM) && !defined(CORE_MOCK)
#error on ESP8266 and ESPUI, you must define OOM debug option when developping
#endif
#endif
@ -396,7 +396,7 @@ void extendedCallback(Control* sender, int type, void* param)
Serial.print(sender->label);
Serial.print("' = ");
Serial.println(sender->value);
Serial.println(String("param = ") + String((int)param));
Serial.println(String("param = ") + String((long)param));
}
void setup() {
@ -443,6 +443,7 @@ void loop() {
#if !defined(ESP32)
((void (*)())0xf00fdead)();
#endif
break;
default:
Serial.print('#');
break;

View File

@ -1 +1,4 @@
// placeholder
#if CORE_MOCK
#include "completeExample.cpp"
#endif

View File

@ -16,7 +16,7 @@ DNSServer dnsServer;
#warning use decorators: { HeapSelectIram doAllocationsInIRAM; ESPUI.addControl(...) ... } (cf. https://arduino-esp8266.readthedocs.io/en/latest/mmu.html#how-to-select-heap)
#warning then check http://<ip>/heap
#endif // MMU_IRAM_HEAP
#ifndef DEBUG_ESP_OOM
#if !defined(DEBUG_ESP_OOM) && !defined(CORE_MOCK)
#error on ESP8266 and ESPUI, you must define OOM debug option when developping
#endif
#endif

View File

@ -16,7 +16,7 @@ DNSServer dnsServer;
#warning use decorators: { HeapSelectIram doAllocationsInIRAM; ESPUI.addControl(...) ... } (cf. https://arduino-esp8266.readthedocs.io/en/latest/mmu.html#how-to-select-heap)
#warning then check http://<ip>/heap
#endif // MMU_IRAM_HEAP
#ifndef DEBUG_ESP_OOM
#if !defined(DEBUG_ESP_OOM) && !defined(CORE_MOCK)
#error on ESP8266 and ESPUI, you must define OOM debug option when developping
#endif
#endif

View File

@ -16,7 +16,7 @@ DNSServer dnsServer;
#warning use decorators: { HeapSelectIram doAllocationsInIRAM; ESPUI.addControl(...) ... } (cf. https://arduino-esp8266.readthedocs.io/en/latest/mmu.html#how-to-select-heap)
#warning then check http://<ip>/heap
#endif // MMU_IRAM_HEAP
#ifndef DEBUG_ESP_OOM
#if !defined(DEBUG_ESP_OOM) && !defined(CORE_MOCK)
#error on ESP8266 and ESPUI, you must define OOM debug option when developping
#endif
#endif