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 603e8f5 commit f550526Copy full SHA for f550526
src/Cru/Ttc.cxx
@@ -139,7 +139,7 @@ bool Ttc::configurePonTx(uint32_t onuAddress)
139
140
Cru::OnuStatus Ttc::onuStatus()
141
{
142
- uint32_t calStatus = mPdaBar->readRegister(Cru::Registers::ONU_USER_LOGIC.index) + 0xc;
+ uint32_t calStatus = mPdaBar->readRegister(Cru::Registers::ONU_USER_LOGIC.index + 0xc / 4);
143
uint32_t onuAddress = mPdaBar->readRegister(Cru::Registers::ONU_USER_LOGIC.index) >> 1;
144
145
Cru::OnuStatus onuStatus = {
@@ -153,6 +153,7 @@ Cru::OnuStatus Ttc::onuStatus()
153
calStatus >> 6 & 0x1,
154
calStatus >> 7 & 0x1
155
};
156
+
157
return onuStatus;
158
}
159
0 commit comments