Skip to content

fix: skip RSSI reads while a GATT write or setup step is in flight - #234

Merged
dzid26 merged 1 commit into
mainfrom
claude/funny-curran-98017b
Oct 15, 2026
Merged

dzid26 merged 1 commit into
mainfrom
claude/funny-curran-98017b

Conversation

@dzid26

@dzid26 dzid26 commented Oct 15, 2026 •

Copy link
Copy Markdown
Collaborator

Requested by R

Before: readRssi() could issue readRemoteRssi() while a characteristic write or a setup step was outstanding, breaking the one-GATT-operation-at-a-time rule. The write-type comment claimed a validation that isn't recorded anywhere.

After: RSSI reads are skipped while setup isn't done or a write is in flight (the next poll picks it up). The comment now says why we write without response.

How: guard in TeslaGattClient.readRssi. The rest of #110 (main-thread callbacks, serialized setup) already landed in 5bf55cc. Compiles; ktlint's worker daemon crashed locally, so CI is the lint check.

Closes #110

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@dzid26 dzid26 self-assigned this Oct 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Snapshots

No visual change in the snapshots at 208701a (vs c168259).

Full-screen emulator shots: Actions → PR screenshots → Run workflow, choosing the head branch of this PR.

Debug APK: still building in Android CI (GitHub sign-in needed)

@dzid26
dzid26 merged commit 4145a3c into main Oct 15, 2026
8 checks passed
@dzid26
dzid26 deleted the claude/funny-curran-98017b branch October 15, 2026 22:02
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.

BLE: GATT callbacks mutate shared state from Binder threads, and GATT operations aren't serialized

1 participant