Skip to content

Commit 3366c92

Browse files
committed
Fix syntax oops
1 parent 8f05bf8 commit 3366c92

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Cru/Ttc.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,12 +172,12 @@ OnuStickyStatus Ttc::getOnuStickyStatus(bool monitoring)
172172
auto notIs = ~is;
173173

174174
// mgtTxPllLocked | mgtTxReady | operational | phaseGood <-- these should be GOOD for upstream to be UP
175-
if ((notIs & 0xb01011010) == 0xb01011010) {
175+
if ((notIs & 0b01011010) == 0b01011010) {
176176
upstreamStatus = LinkStatus::Up;
177177
}
178178

179-
// mgtRxPllLocked | mgtRxReady | rxLocked | rx40Locked <-- these should be GOOD for upstream to be UP
180-
if ((notIs & 0xb10100101) == 0xb10100101) {
179+
// mgtRxPllLocked | mgtRxReady | rxLocked | rx40Locked <-- these should be GOOD for downstream to be UP
180+
if ((notIs & 0b10100101) == 0b10100101) {
181181
downstreamStatus = LinkStatus::Up;
182182
}
183183

0 commit comments

Comments
 (0)