Giter Club home page Giter Club logo

Comments (6)

xnk avatar xnk commented on July 24, 2024

Hmm, that's not happening with my oven, and no it's not intentional. I know what is causing it though. There's a capacitor soldered in parallel with the S button to simulate a keypress during power on it seems. Mine just seems to be a bit smaller or it's the fact that my 1-wire initialization takes longer. I will fix this shortly (ignoring keypresses for a short while during power up). Thanks for letting me know!

from t-962-improvements.

xnk avatar xnk commented on July 24, 2024

I just committed what I hope will fix your issue.Previously there was a busy wait that masked this problem as key scanning didn't start right away. It seems like someone added a capacitor and a transistor to the S-key to simulate a keypress during poweron(?), but my oven apparently has a shorter capacitor charge time and I haven't seen the issue here.

Does this resolve the issue?

from t-962-improvements.

waldo3000 avatar waldo3000 commented on July 24, 2024

The new version doesn't do it either. Now I get the logo screen flashing very briefly followed by running the profile.

Would it work to wait inside a blocking loop at power-up until all keys are released? That way you would not have to guess about what the maximum wait time should be to accommodate all possible units.

from t-962-improvements.

xnk avatar xnk commented on July 24, 2024

That should work, to have keypad_init wait until all keys are released. But I'm curious about how long this wait will be. Apparently it's going to be less than 2 seconds as the old busy-wait solution was working. Code is on master now.

from t-962-improvements.

waldo3000 avatar waldo3000 commented on July 24, 2024

The new version works great (and without encountering any watchdog timer reboots). Thanks!

I see that if I power up while holding down a button it will reboot about once per second. If there is a hardware version that asserts the button state for longer than that I guess you would see one WDT trip and then it would start up normally.

from t-962-improvements.

xnk avatar xnk commented on July 24, 2024

Great! And yes, that's how I tested it. As the watchdog trip time is set to 4/3 seconds it's going to trip every 1.33 seconds or so. I don't see that as a major issue. It will get flagged as a WDT restart on the UART but that's about it!

from t-962-improvements.

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.