162
edits
| Line 140: | Line 140: | ||
buffer[3] = shiftIn(pMISO, pSCK, MSBFIRST); | buffer[3] = shiftIn(pMISO, pSCK, MSBFIRST); | ||
if(buffer[1] & 0x01) | if(buffer[1] & 0x01) // error! | ||
{ | { | ||
// short to VCC | |||
// short to GND | |||
// open circuit | |||
} | } | ||
return 0; // temperature | |||
} | } | ||
</code>--> | </code>--> | ||