diff options
author | Diego Elio Pettenò <flameeyes@flameeyes.com> | 2019-09-08 21:14:35 +0200 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@flameeyes.com> | 2019-09-08 21:14:35 +0200 |
commit | d805072c0223bfb89178f4c0ec1d71d106baf79b (patch) | |
tree | ca1bb7510c9a6b5d2df66c3229cfbf00a88dd37c | |
parent | freestyle_hid_console: allow feeding a list of known commands. (diff) | |
download | glucometerutils-d805072c0223bfb89178f4c0ec1d71d106baf79b.tar glucometerutils-d805072c0223bfb89178f4c0ec1d71d106baf79b.tar.gz glucometerutils-d805072c0223bfb89178f4c0ec1d71d106baf79b.tar.bz2 glucometerutils-d805072c0223bfb89178f4c0ec1d71d106baf79b.tar.lz glucometerutils-d805072c0223bfb89178f4c0ec1d71d106baf79b.tar.xz glucometerutils-d805072c0223bfb89178f4c0ec1d71d106baf79b.tar.zst glucometerutils-d805072c0223bfb89178f4c0ec1d71d106baf79b.zip |
-rw-r--r-- | glucometerutils/drivers/fslibre.py | 6 |
1 files changed, 5 insertions, 1 deletions
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') |