From 8a6c2946a4483f948c1fc543f54cea0eb09612b4 Mon Sep 17 00:00:00 2001 From: Pablo2048 Date: Fri, 10 Jan 2025 11:48:22 +0100 Subject: [PATCH] Upravy na novy Chronos --- src/traceAsyncWebSocket/traceAsyncWebsocket.cpp | 2 +- src/traceAsyncWebSocket/traceAsyncWebsocket.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;