From 5b6427dde0bb8e3b466793243bbfc185f4739ac6 Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 14 Mar 2022 14:13:54 +0100 Subject: refactor: implement & use shared ptr --- src/sensor/sensor.hpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/sensor/sensor.hpp') diff --git a/src/sensor/sensor.hpp b/src/sensor/sensor.hpp index 1e7e488..1b99f6e 100644 --- a/src/sensor/sensor.hpp +++ b/src/sensor/sensor.hpp @@ -1,7 +1,6 @@ #pragma once #include "common/time.hpp" -#include "serial.hpp" #include #include @@ -33,10 +32,9 @@ public: * * @param address The address of the sensor * @param wire A Wire instance - * @param sout A serial output stream * @param throttle_time A minumum time between sensor reads for the sensor to throttle */ - Sensor(uint8_t address, TwoWire wire, SerialStream sout, unsigned int throttle_time); + Sensor(uint8_t address, TwoWire wire, unsigned int throttle_time) noexcept; /** * Initializes communication with the sensor. @@ -157,7 +155,6 @@ public: private: TwoWire _wire; - SerialStream _sout; uint8_t _address; -- cgit v1.2.3-18-g5258