We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b6b2fa commit cf9bc8eCopy full SHA for cf9bc8e
src/SpdReaderWriterCore/Smbus.cs
@@ -651,8 +651,9 @@ private byte[] Scan(bool minimumResults) {
651
652
for (byte i = 0; i <= 7; i++) {
653
try {
654
- if (ReadByte((byte)(i + 0x50))) {
655
- result.Enqueue((byte)(i + 0x50));
+ byte address = (byte)(i + 0x50);
+ if (ProbeAddress(address)) {
656
+ result.Enqueue(address);
657
if (minimumResults) {
658
break;
659
}
@@ -1148,6 +1149,11 @@ public SmbStatus GetBusStatus() {
1148
1149
1150
1151
if (Info.VendorId == VendorId.Nvidia) {
1152
+
1153
+ if (IoPort.Read<byte>(NvidiaSmbusRegister.Protocol) != 0) {
1154
+ return SmbStatus.Busy;
1155
+ }
1156
1157
status = IoPort.Read<byte>(NvidiaSmbusRegister.Status);
1158
1159
switch (status) {
0 commit comments