summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@flameeyes.com>2020-08-02 22:51:26 +0200
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2020-08-03 10:12:25 +0200
commit1b9a3a90746bb2fba931505620880691ab0008fd (patch)
tree5bb676038c65372fa463e58f5698c0450f761943
parentMake use of modern Python ordered kwargs. (diff)
downloadglucometerutils-1b9a3a90746bb2fba931505620880691ab0008fd.tar
glucometerutils-1b9a3a90746bb2fba931505620880691ab0008fd.tar.gz
glucometerutils-1b9a3a90746bb2fba931505620880691ab0008fd.tar.bz2
glucometerutils-1b9a3a90746bb2fba931505620880691ab0008fd.tar.lz
glucometerutils-1b9a3a90746bb2fba931505620880691ab0008fd.tar.xz
glucometerutils-1b9a3a90746bb2fba931505620880691ab0008fd.tar.zst
glucometerutils-1b9a3a90746bb2fba931505620880691ab0008fd.zip
-rwxr-xr-xreversing_tools/abbott/extract_freestyle.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/reversing_tools/abbott/extract_freestyle.py b/reversing_tools/abbott/extract_freestyle.py
index 3efbc5a..006b393 100755
--- a/reversing_tools/abbott/extract_freestyle.py
+++ b/reversing_tools/abbott/extract_freestyle.py
@@ -92,7 +92,7 @@ def main():
parser.add_argument(
"pcap_file",
action="store",
- type=str,
+ type=argparse.FileType(mode="rb"),
help="Path to the pcapng file with the USB capture.",
)
@@ -100,7 +100,7 @@ def main():
logging.basicConfig(level=args.vlog)
- session = usbmon.pcapng.parse_file(args.pcap_file, retag_urbs=False)
+ session = usbmon.pcapng.parse_stream(args.pcap_file, retag_urbs=False)
if not args.device_address:
for descriptor in session.device_descriptors.values():