Upravy na novy Chronos

This commit is contained in:
Pavel Brychta 2025-01-10 11:48:22 +01:00
parent 4c6627a4bd
commit 8a6c2946a4
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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;