Skip to content

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