Skip to content

Commit

Permalink
disable troubling bitsend in ds18b20
Browse files Browse the repository at this point in the history
  • Loading branch information
orgua committed Mar 2, 2016
1 parent 8327535 commit 7762fb7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/DS18B20.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ bool DS18B20::duty(OneWireHub *hub)
switch (cmd)
{
case 0x44: // CONVERT T --> start a new measurement conversion
hub->sendBit(1);
//hub->sendBit(1); // 1 is passive ...
break;

case 0x4E: // WRITE SCRATCHPAD
Expand All @@ -46,11 +46,11 @@ bool DS18B20::duty(OneWireHub *hub)
break;

case 0xB8: // RECALL E2 (EEPROM to 3byte from Scratchpad)
hub->sendBit(1); // signal that OP is done
//hub->sendBit(1); // signal that OP is done // 1 is passive ...
break;

case 0xB4: // READ POWER SUPPLY
hub->sendBit(1); // 1: say i am external powered, 0: uses parasite power
//hub->sendBit(1); // 1: say i am external powered, 0: uses parasite power, // 1 is passive ...
break;

// READ TIME SLOTS, respond with 1 if conversion is done, not usable with parasite power
Expand Down

0 comments on commit 7762fb7

Please sign in to comment.