Skip to content

Commit

Permalink
update bt_unstable message
Browse files Browse the repository at this point in the history
  • Loading branch information
salman2135 committed Nov 30, 2023
1 parent 46ae6c0 commit 09009a9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/explorepy/stream_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,9 @@ def send_timestamp(self):
self._device_configurator.send_timestamp()

def update_bt_stability_status(self, current_timestamp):
if self._is_imp_mode:
self.instability_flag = False
return
if 'board_id' in self.device_info.keys():
if self._last_packet_timestamp == 0:
return
Expand All @@ -349,7 +352,7 @@ def update_bt_stability_status(self, current_timestamp):
self.instability_flag = True
self.last_bt_unstable_time = current_time
else:
if current_time - self.last_bt_unstable_time > 10:
if current_time - self.last_bt_unstable_time > 3:
self.instability_flag = False

def is_connection_unstable(self):
Expand Down

0 comments on commit 09009a9

Please sign in to comment.