Git Product home page Git Product logo

Comments (6)

tdicola avatar tdicola commented on August 18, 2024 12

Oh if you have a main loop that never exits (the while True) ampy will get confused waiting for the program to finish and eventually timeout. In those cases add the -n option which tells amp not to wait for output. For example:

ampy run -n foo.py

from ampy.

kglasnapp avatar kglasnapp commented on August 18, 2024 5

Thanks -- I was getting timeout error on a microPython program. I used the -n option and it went away.

The problem is that I do not see the results of any print outs. How can I avoid the timeout and get printouts.

from ampy.

mjmare avatar mjmare commented on August 18, 2024

Ah, should have thought of that. Saw you use this feature in one of the videos. OTOH, I would expect amp to "hang", but not the program on the board to not work.

from ampy.

jurasec avatar jurasec commented on August 18, 2024

Thank you!, -n works good. Great tool.

from ampy.

EvoltPratom avatar EvoltPratom commented on August 18, 2024

Thanks -- I was getting timeout error on a microPython program. I used the -n option and it went away.

The problem is that I do not see the results of any print outs. How can I avoid the timeout and get printouts.

yes same thing happened but then i tried lighting led if msg was correct in the sub_cb func and still it didn't work,
then i removed the while loop and did it for single try, still same error what could have happened

from ampy.

EvoltPratom avatar EvoltPratom commented on August 18, 2024

Thanks -- I was getting timeout error on a microPython program. I used the -n option and it went away.

The problem is that I do not see the results of any print outs. How can I avoid the timeout and get printouts.

i tried the -n option and intentionally made an error in the code, and ran it, without the -n option it gave a syntax error and with -n it just completed and terminal prompt came back with no error, -n doesn't work

from ampy.

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.