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

add changelog and fix typo #285

Merged
merged 4 commits into from
Aug 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
Changelog
=========

1.8.2 (28.8.2023)
------------------
* Improve explore mock device
* Add yaml file for RTD build



1.8.1 (11.7.2023)
------------------
* Bugfix record data
Expand Down
8 changes: 4 additions & 4 deletions src/explorepy/stream_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def __init__(self, debug=False):
self._last_packet_rcv_time = 0
self.is_bt_streaming = True
self.debug = debug
self.unstablility_flag = False
self.instability_flag = False
self.last_bt_unstable_time = 0

def subscribe(self, callback, topic):
Expand Down Expand Up @@ -346,11 +346,11 @@ def update_bt_stability_status(self, current_timestamp):

current_time = get_local_time()
if is_unstable:
self.unstablility_flag = True
self.instability_flag = True
self.last_bt_unstable_time = current_time
else:
if current_time - self.last_bt_unstable_time > 10:
self.unstablility_flag = False
self.instability_flag = False

def is_connection_unstable(self):
return self.unstablility_flag
return self.instability_flag
Loading