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

[MAX6675] Changed self test

parent 54b02ee0
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,9 @@ SPIBusConfig MAX6675::getDefaultSPIConfig()
bool MAX6675::init() { return true; }
bool MAX6675::selfTest()
bool MAX6675::selfTest() { return true; }
bool MAX6675::checkConnection()
{
uint16_t sample;
......@@ -51,7 +53,7 @@ bool MAX6675::selfTest()
sample = spi.read16();
}
// The third bit (D2) indicates wheter the termocouple is connected or not.
// The third bit (D2) indicates wheter the termocouple is connected or not
// It is high if open
if ((sample % 0x2) != 0)
{
......
......@@ -62,6 +62,11 @@ public:
*/
bool selfTest();
/**
* @brief Checks whether the thermocouple is connected or not.
*/
bool checkConnection();
private:
TemperatureData sampleImpl() override;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment