-
Notifications
You must be signed in to change notification settings - Fork 499
Closed
Description
In DallasTemperature.h header file the isConversionComplete function is defined but it is not implemented in the DallasTemperature.cpp file therefore it is not possible to use it.
Code:
// start conversion
bool cmp = tempSensor->isConversionComplete();
if(cmp == true)
{
Serial.println("Conversion complete");
// make it async
tempSensor->setWaitForConversion(false);
tempSensor->requestTemperatures();
tempSensor->setWaitForConversion(true);
}
else
{
Serial.println("Conversion not complete");
}
Error:
Compiling 'MyProject' for 'Arduino Uno'
_TempSensorController.cpp.o : : In function `_TempSensorController::run()':
_TempSensorController.cpp : isConversionComplete()'
Error creating .elf
Metadata
Metadata
Assignees
Labels
No labels