Git Product home page Git Product logo

Comments (3)

bau-sec avatar bau-sec commented on September 1, 2024

Minor clarification: It's not simply that half is missing; it's that the receive code ensures that the timing array starts with a long pulse. If the sync signal starts with a short pulse, the starting pulse will be omitted. If the sync signal starts with a long pulse the entire sync signal will be captured. My comments in PR #49 illustrate and explain this in the case of a protocol in which the sync starts with a long pulse.

from rc-switch.

fingolfin avatar fingolfin commented on September 1, 2024

You are of course absolutely right, thanks for pointing this out.

from rc-switch.

Martin-Laclaustra avatar Martin-Laclaustra commented on September 1, 2024

One more comment: The sort half (if starts with a sort half) of the sync signal is the last timing recorded.
The next timing, which the library uses to understand that the code has finished is the one that is similar to the initial long one.
So the data for that signal is already there and available in:
MySwitch.getReceivedRawdata()[2*MySwitch.getReceivedBitlength()+1]

from rc-switch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.