Skip to content
Snippets Groups Projects
Commit 99e5fb3d authored by Alberto Nidasio's avatar Alberto Nidasio
Browse files

[MAX] Fixed comment typos

parent 1b027757
No related branches found
No related tags found
No related merge requests found
...@@ -81,7 +81,7 @@ TemperatureData MAX31855::sampleImpl() ...@@ -81,7 +81,7 @@ TemperatureData MAX31855::sampleImpl()
// Extract data bits // Extract data bits
sample = sample >> 2; sample = sample >> 2;
// Convert the integer and decimal part separetly // Convert the integer and decimal part separately
result.temperature = static_cast<float>(sample >> 2); result.temperature = static_cast<float>(sample >> 2);
result.temperature += static_cast<float>(sample & 0x3) * 0.25; result.temperature += static_cast<float>(sample & 0x3) * 0.25;
...@@ -103,7 +103,7 @@ TemperatureData MAX31855::readInternalTemperature() ...@@ -103,7 +103,7 @@ TemperatureData MAX31855::readInternalTemperature()
// Extract data bits // Extract data bits
sample[1] = sample[1] >> 4; sample[1] = sample[1] >> 4;
// Convert the integer and decimal part separetly // Convert the integer and decimal part separately
result.temperature = static_cast<float>(sample[1] >> 4); result.temperature = static_cast<float>(sample[1] >> 4);
result.temperature += static_cast<float>(sample[1] & 0xF) * 0.0625; result.temperature += static_cast<float>(sample[1] & 0xF) * 0.0625;
......
...@@ -53,12 +53,12 @@ bool MAX6675::checkConnection() ...@@ -53,12 +53,12 @@ bool MAX6675::checkConnection()
sample = spi.read16(); sample = spi.read16();
} }
// The third bit (D2) indicates wheter the termocouple is connected or not // The third bit (D2) indicates whether the thermocouple is connected or not
// It is high if open // It is high if open
if ((sample & 0x4) != 0) if ((sample & 0x4) != 0)
{ {
lastError = SensorErrors::SELF_TEST_FAIL; lastError = SensorErrors::SELF_TEST_FAIL;
LOG_ERR(logger, "Self test failed, the termocouple is not connected"); LOG_ERR(logger, "Self test failed, the thermocouple is not connected");
return false; return false;
} }
...@@ -81,7 +81,7 @@ TemperatureData MAX6675::sampleImpl() ...@@ -81,7 +81,7 @@ TemperatureData MAX6675::sampleImpl()
sample &= 0x7FF8; sample &= 0x7FF8;
sample >>= 3; sample >>= 3;
// Convert the integer and decimal part separetly // Convert the integer and decimal part separately
result.temperature = static_cast<float>(sample >> 2); result.temperature = static_cast<float>(sample >> 2);
result.temperature += static_cast<float>(sample & 0x3) * 0.25; result.temperature += static_cast<float>(sample & 0x3) * 0.25;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment