max31723: made it work with SPI but the data looks like incorrect

Signed-off-by: Kiveisha Yevgeniy <yevgeniy.kiveisha@intel.com>
This commit is contained in:
Kiveisha Yevgeniy
2014-08-06 16:41:40 +00:00
parent 1747fbbe19
commit d0e83d7076
3 changed files with 52 additions and 23 deletions

View File

@ -45,11 +45,12 @@ main(int argc, char **argv)
{
//! [Interesting]
sensor = new upm::MAX31723(7);
usleep (1000000);
// while (!doWork) {
while (!doWork) {
std::cout << "Temperature " << sensor->getTemperature() << std::endl;
// usleep (3000000);
// }
usleep (1000000);
}
//! [Interesting]
std::cout << "exiting application" << std::endl;