Skip to content

removed duplicated code by combining conditions in #ifdef directives#437

Closed
mi-hol wants to merge 1 commit intomasterfrom
remove_duplicated_code
Closed

removed duplicated code by combining conditions in #ifdef directives#437
mi-hol wants to merge 1 commit intomasterfrom
remove_duplicated_code

Conversation

@mi-hol
Copy link
Copy Markdown
Contributor

@mi-hol mi-hol commented Mar 20, 2026

Refactor platform-specific USB reinitialization logic and update debug message.

Refactor platform-specific USB reinitialization logic and update debug message.
reinitUsb();
#endif
#ifdef PLATFORM_MAC
#else
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This would perform a reinitUsb on Android. I don't think that's intended.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@turboencabulator thanks, you are correct! Closing

@mi-hol mi-hol closed this Apr 15, 2026
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