GithubHelp home page GithubHelp logo

Comments (5)

prusnak avatar prusnak commented on July 17, 2024 2

The problem is here:

if progress == 0:

If show_pin_timeout is called with progress == 0 the screen is cleared.

If timeout is bigger than 1000 seconds, show_pin_timeout is called with progress == 0 multiple times, each time performing a clear screen.

Not sure what is the easiest solution to this. Quick hack would be that show_pin_timeout remembers last value of progress and this is compared on each call. Clear screen is performed only if progress == 0 and last_progress != progress.

@jpochyla what do you think?

from trezor-core.

tsusanka avatar tsusanka commented on July 17, 2024 1

LGTM. The screen does not flicker after 10th try. Branch master c55b655.

Videos: https://streamable.com/6hy4v http://streamable.com/lwq0e

from trezor-core.

tsusanka avatar tsusanka commented on July 17, 2024

Ping @jpochyla . Or have you discussed this in person?

from trezor-core.

jpochyla avatar jpochyla commented on July 17, 2024

Possible fix in 7533409

from trezor-core.

prusnak avatar prusnak commented on July 17, 2024

Seems like a good fix!

Can we prepare a firmware with the commit and try entering PIN on the device incorrectly 10 times? (essentialy when we need to wait for more than 1000 seconds, ideally at least 8000 seconds)

from trezor-core.

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.