Skip to content

Pull bug fix from main to dev#33

Merged
Janek79ax merged 2 commits into
developmentfrom
main
May 11, 2026
Merged

Pull bug fix from main to dev#33
Janek79ax merged 2 commits into
developmentfrom
main

Conversation

@Janek79ax

Copy link
Copy Markdown
Contributor

No description provided.

OyczE added 2 commits May 6, 2026 13:39
fix(karma): isolate per-tab state to prevent cross-tab UI corruption and crashes
- Implement save_globals_to_tab_context() to save all Karma globals
  (UI pointers, probe data, sniffer state) into tab context on tab switch
- Implement restore_tab_context_to_globals() to restore Karma state
  from context when switching back to a tab
- Extend restore_ui_pointers_from_ctx() with all Karma widget pointers
- Mirror widget pointers into ctx immediately after page creation so
  save/restore works correctly from the first tab switch
- Restore karma_probes_container and button pointers in show_karma_page()
  when returning to an existing page (was causing probe list to render
  into the wrong tab's container → blank list / crash)
- Move karma state reset (probe_count, selected_idx) to new-page creation
  only; returning to an existing page no longer clears collected probes
- Flush UART RX buffer before sending list_probes to discard leftover
  sniffer output that was filling the 2048-byte response buffer and
  truncating the actual probe list
- Auto-fetch and display probes on Stop Sniffer button press; remove
  the now-redundant Show Probes button from the UI
Version check was using strict string equality, so any firmware newer
than the required version (e.g. 1.6.4 when 1.6.3 is required) was
incorrectly flagged as a mismatch and showed a warning popup.

Replace strcmp with a semver-aware comparison that only marks the
firmware as mismatched when it is strictly older than the minimum
required version.
@Janek79ax
Janek79ax merged commit fffec14 into development May 11, 2026
5 checks passed
OyczE pushed a commit that referenced this pull request May 25, 2026
Pull bug fix from main to dev
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