Skip to content

Commit

Permalink
fix (workaround for qasync)
Browse files Browse the repository at this point in the history
  • Loading branch information
hishizuka committed Oct 25, 2023
1 parent c93d96a commit be051ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ An open-source bike computer based on Raspberry Pi Zero (W, WH, 2 W) with GPS a
https://github.com/hishizuka/pizero_bikecomputer

# News
- 2023/10/20 The program has now been substantially modified with significant contributions from [Ptosiek](https://github.com/Ptosiek) . `timezonefinder` is now required. Also, `qasync` does not work with the latest version, so install version 0.24.0.
- 2023/10/20 The program has now been substantially modified with significant contributions from [Ptosiek](https://github.com/Ptosiek) . `timezonefinder` is now required. ~~Also, `qasync` does not work with the latest version, so install version 0.24.0.~~
- 2023/9/15 Add [receiving route from Android Google Maps](./doc/software_installation.md#courses) with Bluetooth File Transfer Protocol. So, install bluez-obexd and dbus-x11 package.
- 2023/6/26 Replace hishizuka/pyqtgraph with original pyqtgraph. So uninstall and re-install pyqtgraph.
- 2023/6/26 Add GadgetBridge documents in [software_installation.md](./doc/software_installation.md#network).
Expand All @@ -15,7 +15,7 @@ https://github.com/hishizuka/pizero_bikecomputer
```
2023/10/20 update
$ sudo pip3 install timezonefinder
$ sudo pip3 install qasync==0.24.0
$ sudo pip3 install qasync --upgrade
2023/9/15 update
#For Android only
Expand Down
4 changes: 3 additions & 1 deletion modules/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,9 @@ def __init__(self):
def init_loop(self, call_from_gui=False):
if self.G_GUI_MODE == "PyQt":
if call_from_gui:
asyncio.set_event_loop(self.loop)
#asyncio.set_event_loop(self.loop)
# workaround for latest qasync and older version(~0.24.0)
asyncio.events._set_running_loop(self.loop)
self.start_coroutine()
else:
self.loop = asyncio.get_event_loop()
Expand Down

0 comments on commit be051ba

Please sign in to comment.