Skip to content

Commit 072fa1f

Browse files
authored
Merge pull request #16 from MJLHThomassen-Eurocom/bugfix/session_dispose_fix
Fixed ArduinoSession Dispose Bug
2 parents f80f64b + 040452a commit 072fa1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Solid.Arduino/ArduinoSession.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ public void StopI2CReading()
758758

759759
public void Dispose()
760760
{
761-
if (_gotOpenConnection)
761+
if (!_gotOpenConnection)
762762
{
763763
_connection.Close();
764764
}

0 commit comments

Comments
 (0)