Skip to content
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

[FL-3766] Refactor detected protocols list #3809

Merged
merged 9 commits into from
Jul 31, 2024

Conversation

Astrrra
Copy link
Member

@Astrrra Astrrra commented Jul 26, 2024

What's new

  • Internal NFC app detected protocols array refactoring, no user-facing changes

Verification

  • Verify that everything works the same as it did (affected areas: NFC Multi-protocol card reading; Extra Actions -> Read specific card type; Ultralight Unlock)

Checklist (For Reviewer)

  • PR has description of feature/bug or link to Confluence/Jira task
  • Description contains actions to verify feature/bugfix
  • I've built this code, uploaded it to the device and verified feature/bugfix

Copy link

github-actions bot commented Jul 26, 2024

Compiled f7 firmware for commit b65208b8:

@Astrrra Astrrra marked this pull request as ready for review July 29, 2024 08:02
@hedger hedger added the NFC NFC-related label Jul 29, 2024
instance->selected_idx = 0;
}

uint32_t nfc_detected_protocols_get_num(NfcDetectedProtocols* instance) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
uint32_t nfc_detected_protocols_get_num(NfcDetectedProtocols* instance) {
uint32_t nfc_detected_protocols_get_num(const NfcDetectedProtocols* instance) {

return instance->protocols_detected_num;
}

NfcProtocol nfc_detected_protocols_get_protocol(NfcDetectedProtocols* instance, uint32_t idx) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
NfcProtocol nfc_detected_protocols_get_protocol(NfcDetectedProtocols* instance, uint32_t idx) {
NfcProtocol nfc_detected_protocols_get_protocol(const NfcDetectedProtocols* instance, uint32_t idx) {

instance->selected_idx = 0;
}

NfcProtocol nfc_detected_protocols_get_selected(NfcDetectedProtocols* instance) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
NfcProtocol nfc_detected_protocols_get_selected(NfcDetectedProtocols* instance) {
NfcProtocol nfc_detected_protocols_get_selected(const NfcDetectedProtocols* instance) {

@skotopes skotopes merged commit f73d60c into dev Jul 31, 2024
11 checks passed
@skotopes skotopes deleted the astra/3766-protocol-detect-refactor branch July 31, 2024 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NFC NFC-related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants