You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//set time one sample before the falling edge of the next slot, like accounting for the recovery time
216
+
time = nextSlotFallingEdge - 1;
217
+
} else {
218
+
//may occur if capture ends before the begining of the next slot
219
+
time = ttime;
220
+
}
221
+
} else {
222
+
//may occur if capture ends during slavePresent pulse
223
+
time = ttime;
224
+
}
225
+
} else {
226
+
// Advance the time until *after* the reset pulse... (in case a better criteria was not matched above, since this method does not account for admisable parmeter variation)
227
+
time = ttime;
228
+
}
210
229
211
230
LOG.log( Level.FINE, "Master bus reset; slave is {0}present...", ( slavePresent ? "" : "NOT " ) );
212
231
@@ -224,14 +243,12 @@ private void decodeData( final AcquisitionResult aData, final OneWireDataSet aDa
224
243
if ( this.owTiming.isZero( diff ) )
225
244
{
226
245
// Zero bit: only update timing...
227
-
time = ( long )( fallingEdge + ( this.owTiming.getBitFrameLength() / timingCorrection ) );
228
246
}
229
247
elseif ( this.owTiming.isOne( diff ) )
230
248
{
231
249
// Bytes are sent LSB first, so decode the byte as well with LSB
232
250
// first...
233
-
byteValue |= 0x80;
234
-
time = ( long )( fallingEdge + ( this.owTiming.getBitFrameLength() / timingCorrection ) );
0 commit comments