Skip to content

Commit

Permalink
Merge pull request letscontrolit#1186 from linuxnico/mega
Browse files Browse the repository at this point in the history
add ds1822 definition to ds_read_temp function
  • Loading branch information
TD-er authored Apr 13, 2018
2 parents 9808bf8 + 07948c8 commit ce11c84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_P004_Dallas.ino
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ boolean Plugin_004_DS_readTemp(uint8_t ROM[8], float * value)
return false;
}

if ((ROM[0] == 0x28 ) || (ROM[0] == 0x3b)) // DS18B20 or DS1825
if ((ROM[0] == 0x28 ) || (ROM[0] == 0x3b) || (ROM[0] == 0x22)) // DS18B20 or DS1825 or DS1822
{
DSTemp = (ScratchPad[1] << 8) + ScratchPad[0];
*value = (float(DSTemp) * 0.0625);
Expand Down

0 comments on commit ce11c84

Please sign in to comment.