Coder Social home page Coder Social logo

Bug in read_timeout method, "eating" the initial mark duration and producing result different from Arduino... about irremoteesp8266 HOT 7 CLOSED

crankyoldgit avatar crankyoldgit commented on July 19, 2024
Bug in read_timeout method, "eating" the initial mark duration and producing result different from Arduino...

from irremoteesp8266.

Comments (7)

markszabo avatar markszabo commented on July 19, 2024

Thank you for the bug report. For me, and for others the library way working the original way, so it's an interesting issue to investigate. As I understood right now it saves the constant 20 instead of (now - start) / USECPERTICK + 1 when irparams.rcvstate == STATE_IDLE. Can you please send a pull request, so I can review and test your code?

from irremoteesp8266.

Nca78 avatar Nca78 commented on July 19, 2024

I kept the adding of constant 20 also.
I don't know how to make a pull request at the moment, I'm all new to github and never used git before, please leave me a little time to learn :)
I will provide you some examples also if you want.

from irremoteesp8266.

crankyoldgit avatar crankyoldgit commented on July 19, 2024

Just chasing up this. If you don't know how to a pull request, can you send us a 'diff' from the current source code to your version that encompases your changes?

from irremoteesp8266.

roidayan avatar roidayan commented on July 19, 2024

I'm following this as well. Wouldn't the first mark be in your case a constant 1 ? As start and now would be the same? Is that what makes the difference?

from irremoteesp8266.

roidayan avatar roidayan commented on July 19, 2024

sorry my mistake. start is 0 first time but now will be the current micros. if we'll use the calc also for when state is idle then we'll get different result for the first item in rawbuf each time we reset to idle state. that's the reason for the constant for first item. Now sure why constant 20 was chosen.

from irremoteesp8266.

crankyoldgit avatar crankyoldgit commented on July 19, 2024

Can this issue be closed now?

from irremoteesp8266.

crankyoldgit avatar crankyoldgit commented on July 19, 2024

Marking this issue closed. If you disagree, please re-open.

from irremoteesp8266.

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.