Changeset ecee2e6 for src/python
- Timestamp:
- Sep 21, 2017, 4:05:40 PM (9 years ago)
- Branches:
- debian/bullseye, debian/jessie
- Children:
- d3bfa78
- Parents:
- 36a36bf (diff), 9773514 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
src/python/gnuboat/daemon/gpsdpoller.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/python/gnuboat/daemon/gpsdpoller.py
r36a36bf recee2e6 31 31 def __init__(self, logperiod): 32 32 threading.Thread.__init__(self) 33 try: 34 self._session = gps.gps(mode=gps.WATCH_ENABLE) 35 except: 36 self._session = None 37 self._running = False 38 return 33 self._session = None 34 self._session = None 39 35 self._currentValue = None 40 36 self._running = True … … 92 88 while self._running: 93 89 try: 90 if self._session is None: 91 self._session = gps.gps(mode=gps.WATCH_ENABLE) 94 92 self._currentValue = self._session.next() 95 93 except StopIteration: … … 99 97 print(traceback.format_exc()) 100 98 self._currentValue = None 99 self._session = None 101 100 except StopIteration: 102 101 pass
Note:
See TracChangeset
for help on using the changeset viewer.
