Skip to content

Commit

Permalink
Merge pull request #339 from Kanuan/reset-idle-timer
Browse files Browse the repository at this point in the history
Reset bluetooth idle disconnect timer when (re-)loading configurations
  • Loading branch information
nefarius authored Apr 16, 2024
2 parents bbb5bfb + a4d4691 commit c49ed7c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sys/Configuration.c
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,12 @@ static void ConfigNodeParse(
PDS_DRIVER_CONFIGURATION pCfg = &Context->Configuration;
cJSON* pNode = NULL;

//
// Reset device's idle disconnect timer
//
Context->Connection.Bth.IdleDisconnectTimestamp.QuadPart = 0;


//
// Common
//
Expand Down

0 comments on commit c49ed7c

Please sign in to comment.