Skip to content

Feat multi card#32

Merged
bettse merged 3 commits intobettse:mainfrom
cindersocket:feat-multi-card
Mar 9, 2026
Merged

Feat multi card#32
bettse merged 3 commits intobettse:mainfrom
cindersocket:feat-multi-card

Conversation

@cindersocket
Copy link
Contributor

I made two related changes on feat-multi-card. I started using the credential type returned by requestPacs2 instead of ignoring it, to disambiguate 14443a. The second change fixes the success flow for reads after the multi-tech work. I wanted success to be worker-owned, meaning the UI should only move on after the worker has actually finished, stopped the poller, and cleaned everything up. That avoids races between the UI and the NFC stack.

Once I removed the old direct success event from the protocol side, I missed one completion handoff: after a successful PACS2 decode, the worker was never being told that the read was done. I'm pretty sure that’s why some read as 14a cases would hang after the credential was already parsed. I fixed that by explicitly marking the worker as complete when PACS2 decoding succeeds, so the worker can unwind normally and then emit the single success event.

@netlify
Copy link

netlify bot commented Mar 9, 2026

Deploy Preview for seader canceled.

Name Link
🔨 Latest commit 8e1a728
🔍 Latest deploy log https://app.netlify.com/projects/seader/deploys/69ae196baa3aa70008225f47

@bettse bettse merged commit 5426d47 into bettse:main Mar 9, 2026
5 checks passed
@cindersocket cindersocket deleted the feat-multi-card branch March 9, 2026 00:53
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