diff options
Diffstat (limited to 'src/Heating/Sensors/SensorWithPort.cpp')
-rw-r--r-- | src/Heating/Sensors/SensorWithPort.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Heating/Sensors/SensorWithPort.cpp b/src/Heating/Sensors/SensorWithPort.cpp index 7609ad81..004645e1 100644 --- a/src/Heating/Sensors/SensorWithPort.cpp +++ b/src/Heating/Sensors/SensorWithPort.cpp @@ -8,12 +8,12 @@ #include "SensorWithPort.h" #include "GCodes/GCodeBuffer/GCodeBuffer.h" -SensorWithPort::SensorWithPort(unsigned int sensorNum, const char *type) +SensorWithPort::SensorWithPort(unsigned int sensorNum, const char *type) noexcept : TemperatureSensor(sensorNum, type) { } -SensorWithPort::~SensorWithPort() +SensorWithPort::~SensorWithPort() noexcept { port.Release(); } @@ -35,7 +35,7 @@ bool SensorWithPort::ConfigurePort(GCodeBuffer& gb, const StringRef& reply, PinA } // Copy the basic details to the reply buffer. This hides the version in the base class. -void SensorWithPort::CopyBasicDetails(const StringRef& reply) const +void SensorWithPort::CopyBasicDetails(const StringRef& reply) const noexcept { reply.printf("Sensor %u", GetSensorNumber()); if (GetSensorName() != nullptr) |