diff --git a/src/shared/sensors/MAX31855/MAX31855.cpp b/src/shared/sensors/MAX31855/MAX31855.cpp index 3a723a6d8a7f46878fafd41162925a734fccf6ab..2318bd3c58eb0d30af5903d725489b526aa18f05 100644 --- a/src/shared/sensors/MAX31855/MAX31855.cpp +++ b/src/shared/sensors/MAX31855/MAX31855.cpp @@ -81,7 +81,7 @@ TemperatureData MAX31855::sampleImpl() // Extract data bits 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 & 0x3) * 0.25; @@ -103,7 +103,7 @@ TemperatureData MAX31855::readInternalTemperature() // Extract data bits 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] & 0xF) * 0.0625; diff --git a/src/shared/sensors/MAX6675/MAX6675.cpp b/src/shared/sensors/MAX6675/MAX6675.cpp index b7e5e5b67869773ca5b9f65a381f472af36146d8..353db9e0fcb77b37a8d21ae57007576854d77f7e 100644 --- a/src/shared/sensors/MAX6675/MAX6675.cpp +++ b/src/shared/sensors/MAX6675/MAX6675.cpp @@ -53,12 +53,12 @@ bool MAX6675::checkConnection() 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 if ((sample & 0x4) != 0) { 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; } @@ -81,7 +81,7 @@ TemperatureData MAX6675::sampleImpl() sample &= 0x7FF8; 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 & 0x3) * 0.25;