-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add --nfc flag to use NFC apdu media #519
base: master
Are you sure you want to change the base?
Conversation
ae67873
to
8ff7576
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #519 +/- ##
==========================================
- Coverage 44.91% 44.81% -0.10%
==========================================
Files 120 121 +1
Lines 12067 12127 +60
Branches 966 966
==========================================
+ Hits 5420 5435 +15
- Misses 6312 6357 +45
Partials 335 335 ☔ View full report in Codecov by Sentry. |
speculos/mcu/seproxyhal.py
Outdated
@@ -270,7 +275,10 @@ def __init__(self, | |||
self.socket_helper.wait_until_tick_is_processed) | |||
self.time_ticker_thread.start() | |||
|
|||
self.usb = usb.USB(self.socket_helper.queue_packet, transport=transport) | |||
usb_transport = transport if transport in ['hid', 'u2f'] else 'hid' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
usb_transport = transport if transport in ['hid', 'u2f'] else 'hid' | |
usb_transport = transport if transport.lower() in ['hid', 'u2f'] else 'hid' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Arguably weird to check that here, when USB.__init__
already has equivalent check. Might as well replace the raise ValueError
by a self.transport = Hid(self.send_xfer)
there if fallbacking on HID is the expected behavior.
No description provided.