summaryrefslogtreecommitdiff
path: root/src/sensor/sensor.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-03-14 14:13:54 +0100
committerHampusM <hampus@hampusmat.com>2022-03-14 14:13:54 +0100
commit5b6427dde0bb8e3b466793243bbfc185f4739ac6 (patch)
treebd8f09220d5c2354824f231c214dc6d9364717ce /src/sensor/sensor.hpp
parent5aa818e65eaa3cc288e097ed3b1a134015215500 (diff)
refactor: implement & use shared ptr
Diffstat (limited to 'src/sensor/sensor.hpp')
-rw-r--r--src/sensor/sensor.hpp5
1 files changed, 1 insertions, 4 deletions
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 <Arduino.h>
#include <Wire.h>
@@ -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;