Skip to content

Commit 7db43f9

Browse files
jessekerkhovensandeepmistry
authored andcommitted
Put device to sleep when calling end()
1 parent 027b519 commit 7db43f9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ECCX08.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ int ECCX08Class::begin()
5656

5757
void ECCX08Class::end()
5858
{
59+
// First wake up the device otherwise the chip didn't react to a sleep commando
60+
wakeup();
61+
sleep();
5962
#ifdef WIRE_HAS_END
6063
_wire->end();
6164
#endif

0 commit comments

Comments
 (0)