Skip to content

fix: reduce current usage on STM32-based hosts when using TXNs #146

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

Merged
merged 1 commit into from
Aug 8, 2025

Conversation

rayozzie
Copy link
Contributor

@rayozzie rayozzie commented Aug 7, 2025

When using transactions (for example, when talking to a NOTE-ESP) this library must initialize and uninitialize GPIOs for RTX and CTX.

For system current usage reasons - particularly, if the sketch is using the Low Power library - it is important that we don't put IO pins with no pullups or pulldowns into an ambiguous GPIO state that will cause excessive current draw.

This PR leverages the STM32's ability to actually put a pin into a floating state with no leakage.

When using transactions (for example, when talking to a NOTE-ESP) this library must initialize and uninitialize GPIOs for RTX and CTX.

For system current usage reasons - particularly, if the sketch is using the Low Power library - it is important that we don't put IO pins with no pullups or pulldowns into an ambiguous GPIO state that will cause excessive current draw.

This PR leverages the STM32's ability to actually put a pin into a floating state with no leakage.
@rayozzie rayozzie requested a review from zfields August 7, 2025 20:30
@zfields zfields merged commit 5492b60 into master Aug 8, 2025
94 checks passed
@zfields zfields deleted the ray/txn-leakage branch August 8, 2025 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants