Skip to content

Commit 6d501c0

Browse files
committed
Add de-init to Wire.end()
1 parent 41af3f8 commit 6d501c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/Wire/src/Wire.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ void TwoWire::setPullups(uint32_t pullupAmount)
141141

142142
void TwoWire::end()
143143
{
144-
// sercom->disableWIRE();
144+
deinitialize(); //De init and power down this IOM
145145
}
146146

147147
uint8_t TwoWire::requestFrom(uint8_t address, size_t quantity, bool stopBit)

0 commit comments

Comments
 (0)