From 99e5fb3d6ead1ae841c5514b16a55441e9674c55 Mon Sep 17 00:00:00 2001 From: Alberto Nidasio <alberto.nidasio@skywarder.eu> Date: Sat, 21 May 2022 11:23:04 +0200 Subject: [PATCH] [MAX] Fixed comment typos --- src/shared/sensors/MAX31855/MAX31855.cpp | 4 ++-- src/shared/sensors/MAX6675/MAX6675.cpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/shared/sensors/MAX31855/MAX31855.cpp b/src/shared/sensors/MAX31855/MAX31855.cpp index 3a723a6d8..2318bd3c5 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 b7e5e5b67..353db9e0f 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; -- GitLab