diff --git a/src/traceAsyncWebSocket/traceAsyncWebsocket.cpp b/src/traceAsyncWebSocket/traceAsyncWebsocket.cpp index bf0a123..7a5c082 100644 --- a/src/traceAsyncWebSocket/traceAsyncWebsocket.cpp +++ b/src/traceAsyncWebSocket/traceAsyncWebsocket.cpp @@ -71,7 +71,7 @@ void TraceAsyncWebsocket::loop() void TraceAsyncWebsocket::init() { - Chronos::attachMs(TRACEWS_CHECK_INTERVAL, this); + Chronos::attach(this, TRACEWS_CHECK_INTERVAL); } String TraceAsyncWebsocket::_getText(const char * buffer) diff --git a/src/traceAsyncWebSocket/traceAsyncWebsocket.hpp b/src/traceAsyncWebSocket/traceAsyncWebsocket.hpp index 85981d8..5a98fa4 100644 --- a/src/traceAsyncWebSocket/traceAsyncWebsocket.hpp +++ b/src/traceAsyncWebSocket/traceAsyncWebsocket.hpp @@ -46,7 +46,7 @@ struct TraceLine { TraceLine() = default; }; -class TraceAsyncWebsocket final : public Trace, public Loop { +class TraceAsyncWebsocket final : public Trace, Loop { protected: TraceLine _lines[MAX_TRACE_LINES]; uint16_t _lines_index = 0;