Skip to content

Commit

Permalink
Merge pull request #98 from awordforthat/issue82/update-gps-docs-amend
Browse files Browse the repository at this point in the history
include key as well as value when iterating over satellite dictionary
  • Loading branch information
tekktrik authored May 19, 2023
2 parents 99f1cc5 + b75667f commit 4b53a07
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
6 changes: 3 additions & 3 deletions adafruit_gps.py
Original file line number Diff line number Diff line change
Expand Up @@ -699,9 +699,9 @@ def _parse_gsv(self, talker: bytes, data: List[str]) -> bool:
# been seen for 30 seconds
timestamp = time.monotonic()
old = []
for sat in self.sats.values():
if (timestamp - sat[4]) > 30:
old.append(i)
for sat_id, sat_data in self.sats.items():
if (timestamp - sat_data[4]) > 30:
old.append(sat_id)
for i in old:
self.sats.pop(i)
for sat in self._sats:
Expand Down
5 changes: 5 additions & 0 deletions optional_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# SPDX-FileCopyrightText: 2021 Jonas Kittner
# SPDX-FileCopyrightText: 2022 Alec Delaney, for Adafruit Industries
#
# SPDX-License-Identifier: Unlicense

adafruit-circuitpython-sd
covdefaults
coverage
freezegun
pytest
7 changes: 0 additions & 7 deletions requirements-dev.txt

This file was deleted.

0 comments on commit 4b53a07

Please sign in to comment.