Skip to content

Commit 4b53a07

Browse files
authored
Merge pull request #98 from awordforthat/issue82/update-gps-docs-amend
include key as well as value when iterating over satellite dictionary
2 parents 99f1cc5 + b75667f commit 4b53a07

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

adafruit_gps.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -699,9 +699,9 @@ def _parse_gsv(self, talker: bytes, data: List[str]) -> bool:
699699
# been seen for 30 seconds
700700
timestamp = time.monotonic()
701701
old = []
702-
for sat in self.sats.values():
703-
if (timestamp - sat[4]) > 30:
704-
old.append(i)
702+
for sat_id, sat_data in self.sats.items():
703+
if (timestamp - sat_data[4]) > 30:
704+
old.append(sat_id)
705705
for i in old:
706706
self.sats.pop(i)
707707
for sat in self._sats:

optional_requirements.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
# SPDX-FileCopyrightText: 2021 Jonas Kittner
12
# SPDX-FileCopyrightText: 2022 Alec Delaney, for Adafruit Industries
23
#
34
# SPDX-License-Identifier: Unlicense
45

56
adafruit-circuitpython-sd
7+
covdefaults
8+
coverage
9+
freezegun
10+
pytest

requirements-dev.txt

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)