Skip to content

Commit

Permalink
Put device to sleep when calling end()
Browse files Browse the repository at this point in the history
  • Loading branch information
jessekerkhoven authored and sandeepmistry committed Feb 25, 2019
1 parent 027b519 commit 7db43f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ECCX08.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ int ECCX08Class::begin()

void ECCX08Class::end()
{
// First wake up the device otherwise the chip didn't react to a sleep commando
wakeup();
sleep();
#ifdef WIRE_HAS_END
_wire->end();
#endif
Expand Down

0 comments on commit 7db43f9

Please sign in to comment.