Skip to content

Commit ab6a682

Browse files
committed
Check SerdesLock bit directly instead of relying on PortStatusCode
1 parent 4039b90 commit ab6a682

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Source/Devices/PortController.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,11 @@ void PortController::processFrames()
7474
uint32_t code = (uint32_t) *(dataPtr + dataOffset);
7575
uint32_t data = (uint32_t) *(dataPtr + dataOffset + 1);
7676

77-
if (code & (uint32_t)PortStatusCode::SerdesLock)
78-
errorFlag = ((uint32_t)data & LINKSTATE_SL) == 0;
77+
errorFlag = errorFlag || ((uint32_t)data & LINKSTATE_SL) == 0;
7978

8079
oni_destroy_frame(frame);
8180

82-
LOGE("Port status changed for " + getName() + ". Port status code is " + String((uint32_t)code));
81+
LOGE("Port status changed for " + getName() + ".");
8382
}
8483
}
8584

0 commit comments

Comments
 (0)