Skip to content

fix: avoid unnecessary single-channel reloads - #15

Open
mkrieger95 wants to merge 1 commit into
FlipperMCE:mainfrom
mkrieger95:patch-2
Open

mkrieger95 wants to merge 1 commit into
FlipperMCE:mainfrom
mkrieger95:patch-2

Conversation

@mkrieger95

Copy link
Copy Markdown

Only mark the memory card for reload when the selected channel actually changes.

With MaxChannels=1, next/previous channel requests wrap back to the same channel, so reloading the card is unnecessary.

Multi-channel behavior is unchanged because a successful channel switch still sets needs_update.

Fixes #13

Only mark the memory card for reload when the selected channel actually changes.

With MaxChannels=1, next/previous channel requests wrap back to the same channel, so reloading the card is unnecessary. Multi-channel behavior is unchanged because a successful channel switch still sets needs_update.

Fixes FlipperMCE#13
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.

[REPORT]: Memorycard reloading unnecessarily

1 participant