From 57b820b019a0a314a62859544fff5bd707003ae8 Mon Sep 17 00:00:00 2001 From: david gauchard Date: Tue, 24 Nov 2020 20:23:36 +0100 Subject: [PATCH] mock: +hexdump() from debug.cpp --- tests/host/Makefile | 1 + tests/host/common/mock.h | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/host/Makefile b/tests/host/Makefile index 410dc3fb01..89f3aef6f8 100644 --- a/tests/host/Makefile +++ b/tests/host/Makefile @@ -269,6 +269,7 @@ ARDUINO_LIBS := \ Updater.cpp \ base64.cpp \ LwipIntfCB.cpp \ + debug.cpp \ ) \ $(addprefix ../../libraries/ESP8266WiFi/src/,\ ESP8266WiFi.cpp \ diff --git a/tests/host/common/mock.h b/tests/host/common/mock.h index f96194a345..da58c889aa 100644 --- a/tests/host/common/mock.h +++ b/tests/host/common/mock.h @@ -99,6 +99,7 @@ uint32_t esp_get_cycle_count(); #ifdef __cplusplus extern "C" { #endif +#include int ets_printf (const char* fmt, ...) __attribute__ ((format (printf, 1, 2))); #define os_printf_plus printf #define ets_vsnprintf vsnprintf