Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/Heating/Sensors/CurrentLoopTemperatureSensor.cpp')
-rw-r--r--src/Heating/Sensors/CurrentLoopTemperatureSensor.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Heating/Sensors/CurrentLoopTemperatureSensor.cpp b/src/Heating/Sensors/CurrentLoopTemperatureSensor.cpp
index eaeebbf9..9932cf8d 100644
--- a/src/Heating/Sensors/CurrentLoopTemperatureSensor.cpp
+++ b/src/Heating/Sensors/CurrentLoopTemperatureSensor.cpp
@@ -18,7 +18,7 @@ const uint8_t MCP3204_SpiMode = SPI_MODE_0;
// Define the minimum interval between readings
const uint32_t MinimumReadInterval = 100; // minimum interval between reads, in milliseconds
-CurrentLoopTemperatureSensor::CurrentLoopTemperatureSensor(unsigned int sensorNum)
+CurrentLoopTemperatureSensor::CurrentLoopTemperatureSensor(unsigned int sensorNum) noexcept
: SpiTemperatureSensor(sensorNum, "Current Loop", MCP3204_SpiMode, MCP3204_Frequency),
tempAt4mA(DefaultTempAt4mA), tempAt20mA(DefaultTempAt20mA), chipChannel(DefaultChipChannel), isDifferential(false)
{
@@ -74,21 +74,21 @@ GCodeResult CurrentLoopTemperatureSensor::Configure(GCodeBuffer& gb, const Strin
return GCodeResult::ok;
}
-void CurrentLoopTemperatureSensor::Poll()
+void CurrentLoopTemperatureSensor::Poll() noexcept
{
float t;
const TemperatureError rslt = TryGetLinearAdcTemperature(t);
SetResult(t, rslt);
}
-void CurrentLoopTemperatureSensor::CalcDerivedParameters()
+void CurrentLoopTemperatureSensor::CalcDerivedParameters() noexcept
{
minLinearAdcTemp = tempAt4mA - 0.25 * (tempAt20mA - tempAt4mA);
linearAdcDegCPerCount = (tempAt20mA - minLinearAdcTemp) / 4096.0;
}
// Try to get a temperature reading from the linear ADC by doing an SPI transaction
-TemperatureError CurrentLoopTemperatureSensor::TryGetLinearAdcTemperature(float& t)
+TemperatureError CurrentLoopTemperatureSensor::TryGetLinearAdcTemperature(float& t) noexcept
{
/*
* The MCP3204 waits for a high input input bit before it does anything. Call this clock 1.