Skip to content

Commit

Permalink
Merge pull request #887 from Mr-Bart-Simpson/develop
Browse files Browse the repository at this point in the history
Bugfix: Array indexing at non existent item
  • Loading branch information
adrianstevens authored Jan 19, 2024
2 parents acd527a + a261cdb commit 111eb7f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ protected byte ReadState8()
{
Span<byte> buffer = stackalloc byte[1];
i2cComms.Read(buffer);
return buffer[1];
return buffer[0];
}

/// <summary>
Expand Down

0 comments on commit 111eb7f

Please sign in to comment.