diff options
author | David Crocker <dcrocker@eschertech.com> | 2021-12-10 12:38:25 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2021-12-10 12:38:25 +0300 |
commit | 4639c116e9d430020326212d258e315c97dd8b57 (patch) | |
tree | f340d01e121e832d055c7ec15b0d0451af52d9a5 /src | |
parent | e2955f3209e417a3b71d42542c481250a03ce9c7 (diff) |
Added missing exception specifications
Diffstat (limited to 'src')
-rw-r--r-- | src/Heating/Sensors/TemperatureSensor.cpp | 4 | ||||
-rw-r--r-- | src/Heating/Sensors/TemperatureSensor.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/Heating/Sensors/TemperatureSensor.cpp b/src/Heating/Sensors/TemperatureSensor.cpp index c7b8cebf..070b2504 100644 --- a/src/Heating/Sensors/TemperatureSensor.cpp +++ b/src/Heating/Sensors/TemperatureSensor.cpp @@ -92,7 +92,7 @@ void TemperatureSensor::SetSensorName(const char *newName) noexcept } // Default implementation of Configure, for sensors that have no configurable parameters -GCodeResult TemperatureSensor::Configure(GCodeBuffer& gb, const StringRef& reply, bool& changed) +GCodeResult TemperatureSensor::Configure(GCodeBuffer& gb, const StringRef& reply, bool& changed) THROWS(GCodeException) { TryConfigureSensorName(gb, changed); if (!changed && !gb.Seen('Y')) @@ -129,7 +129,7 @@ void TemperatureSensor::CopyBasicDetails(const StringRef& reply) const noexcept } // Configure then heater name, if it is provided -void TemperatureSensor::TryConfigureSensorName(GCodeBuffer& gb, bool& seen) +void TemperatureSensor::TryConfigureSensorName(GCodeBuffer& gb, bool& seen) THROWS(GCodeException) { String<MaxHeaterNameLength> buf; bool localSeen = false; diff --git a/src/Heating/Sensors/TemperatureSensor.h b/src/Heating/Sensors/TemperatureSensor.h index 0503b1b1..8b58d7ff 100644 --- a/src/Heating/Sensors/TemperatureSensor.h +++ b/src/Heating/Sensors/TemperatureSensor.h @@ -56,7 +56,7 @@ public: TemperatureError GetLastError() const noexcept { return lastRealError; } // Configure the sensor name, if it is provided - void TryConfigureSensorName(GCodeBuffer& gb, bool& seen); + void TryConfigureSensorName(GCodeBuffer& gb, bool& seen) THROWS(GCodeException); // Set the name - normally called only once void SetSensorName(const char *newName) noexcept; |