mirror of
https://github.com/tbnobody/OpenDTU.git
synced 2026-03-26 10:57:58 +01:00
Use references instead of pointers whenver possible
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
/*
|
||||
* Copyright (C) 2022 Thomas Basler and others
|
||||
* Copyright (C) 2022-2023 Thomas Basler and others
|
||||
*/
|
||||
#include "MessageOutput.h"
|
||||
|
||||
@@ -8,9 +8,9 @@
|
||||
|
||||
MessageOutputClass MessageOutput;
|
||||
|
||||
void MessageOutputClass::init(Scheduler* scheduler)
|
||||
void MessageOutputClass::init(Scheduler& scheduler)
|
||||
{
|
||||
scheduler->addTask(_loopTask);
|
||||
scheduler.addTask(_loopTask);
|
||||
_loopTask.setCallback(std::bind(&MessageOutputClass::loop, this));
|
||||
_loopTask.setIterations(TASK_FOREVER);
|
||||
_loopTask.enable();
|
||||
|
||||
Reference in New Issue
Block a user