Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ngscopeclient/scopehal
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1c7f3c9ab82c
Choose a base ref
...
head repository: ngscopeclient/scopehal
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 28e0c62702db
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Oct 31, 2020

  1. Copy the full SHA
    28e0c62 View commit details
Showing with 10 additions and 0 deletions.
  1. +10 −0 scopeprotocols/OneWireDecoder.cpp
10 changes: 10 additions & 0 deletions scopeprotocols/OneWireDecoder.cpp
Original file line number Diff line number Diff line change
@@ -252,6 +252,16 @@ void OneWireDecoder::Refresh()
else if(pulselen > 60)
current_byte >>= 1;

//Invalid pulse length
else
{
cap->m_offsets.push_back(starts[i]);
cap->m_durations.push_back(lens[i]);
cap->m_samples.push_back(OneWireSymbol(OneWireSymbol::TYPE_ERROR, 0));

state = STATE_IDLE;
}

bitcount ++;

//Last bit? Finish the byte