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

Sync connection state periodically when using serial #209

Merged
merged 1 commit into from
Dec 20, 2024

Conversation

HaoboGu
Copy link
Owner

@HaoboGu HaoboGu commented Dec 19, 2024

When connecting splits using serial, there's no way to know the connection state. So after the serial disconnect, peripheral may have wrong connection state.

This PR moves the cached connection state to BLE split message writer, makes serial split driver periodically sync the connection state.

Copy link

PR build size

  text	   data	    bss	    dec	    hex	filename
120600	    116	  41308	 162024	  278e8	rmk-nrf52840

Diff

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +1.5%      +1  [ = ]       0    [Unmapped]
  -0.0%     -12  [ = ]       0    .strtab
  -0.0%     -13  [ = ]       0    .debug_str
  -0.0%     -24  [ = ]       0    TOTAL

@HaoboGu HaoboGu merged commit 894feb9 into main Dec 20, 2024
24 checks passed
@HaoboGu HaoboGu deleted the fix/peripheral_reconn branch December 20, 2024 11:45
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.

1 participant