trussed-dev / trussed

Modern Cryptographic Firmware
https://trussed.dev
Apache License 2.0
405 stars 26 forks source link

Remove restoration of ui status after RequestUserPresence call #130

Open sosthene-nitrokey opened 1 year ago

sosthene-nitrokey commented 1 year ago

The reply_to method always restores the status to Idle anyway after the syscall returns

Close #129

nickray commented 1 year ago

Restoring the status in all cases could work by wrapping the loop in a closure, so we can get the result, always restore status, and only then return.

sosthene-nitrokey commented 1 year ago

It would still be overridden by the reply_to method anyway.