From d805072c0223bfb89178f4c0ec1d71d106baf79b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= Date: Sun, 8 Sep 2019 20:14:35 +0100 Subject: fslibre: add support for factory resetting FreeStyle Libre device. --- glucometerutils/drivers/fslibre.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/glucometerutils/drivers/fslibre.py b/glucometerutils/drivers/fslibre.py index 478668d..b07a7ca 100644 --- a/glucometerutils/drivers/fslibre.py +++ b/glucometerutils/drivers/fslibre.py @@ -7,7 +7,8 @@ Supported features: - get readings (sensor, flash and blood glucose), including comments; - get and set date and time; - get serial number and software version; - - get and set patient name. + - get and set patient name; + - memory reset (caution!) Expected device path: /dev/hidraw9 or similar HID device. Optional when using HIDAPI. @@ -252,3 +253,6 @@ class Device(freestyle.FreeStyleHidDevice): reading = _parse_arresult(record) if reading: yield reading + + def zero_log(self): + self._send_text_command(b'$resetpatient') -- cgit v1.2.3