Skip to content

Commit ea98723

Browse files
authored
Update Wire.cpp
1 parent 4bd1ba0 commit ea98723

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: libraries/Wire/src/Wire.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -484,8 +484,7 @@ void TwoWire::flush(void)
484484

485485
void TwoWire::reset(void)
486486
{
487-
i2cFreeQueue(i2c); // release malloc memory
488-
i2cReleaseISR(i2c); // remove ISR from Interrupt chain
487+
i2cReleaseISR(i2c); // remove ISR from Interrupt chain,Delete EventGroup,Free Heap memory
489488
i2cReset( i2c );
490489
i2c = NULL;
491490
begin( sda, scl );

0 commit comments

Comments
 (0)