diff options
author | Diego Elio Pettenò <flameeyes@flameeyes.com> | 2020-02-17 01:55:56 +0100 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@flameeyes.com> | 2020-03-06 22:08:25 +0100 |
commit | 9ed639f001bb0e2c3b2ee5894f95bb3ac5a2497f (patch) | |
tree | 4a68cefd6ab8791b5b1f4bdb18229f617b8c30db | |
parent | factor out common driver methods (diff) | |
download | glucometerutils-9ed639f001bb0e2c3b2ee5894f95bb3ac5a2497f.tar glucometerutils-9ed639f001bb0e2c3b2ee5894f95bb3ac5a2497f.tar.gz glucometerutils-9ed639f001bb0e2c3b2ee5894f95bb3ac5a2497f.tar.bz2 glucometerutils-9ed639f001bb0e2c3b2ee5894f95bb3ac5a2497f.tar.lz glucometerutils-9ed639f001bb0e2c3b2ee5894f95bb3ac5a2497f.tar.xz glucometerutils-9ed639f001bb0e2c3b2ee5894f95bb3ac5a2497f.tar.zst glucometerutils-9ed639f001bb0e2c3b2ee5894f95bb3ac5a2497f.zip |
-rw-r--r-- | glucometerutils/support/freestyle.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/glucometerutils/support/freestyle.py b/glucometerutils/support/freestyle.py index 1e8c097..bdb4efd 100644 --- a/glucometerutils/support/freestyle.py +++ b/glucometerutils/support/freestyle.py @@ -48,7 +48,7 @@ def _create_matcher(message_type, content): _is_init_reply = _create_matcher(_INIT_RESPONSE, b'\x01') _is_keepalive_response = _create_matcher(_KEEPALIVE_RESPONSE, b'\x05') -_is_uknown_message_error = _create_matcher(_UNKNOWN_MESSAGE_RESPONSE, b'\x85') +_is_unknown_message_error = _create_matcher(_UNKNOWN_MESSAGE_RESPONSE, b'\x85') _is_encryption_missing_error = _create_matcher( _ENCRYPTION_SETUP_RESPONSE, b'\x15') _is_encryption_setup_error = _create_matcher( @@ -194,7 +194,7 @@ class FreeStyleHidDevice(hiddevice.HidDevice, driver_base.GlucometerDriver, ABC) if _is_keepalive_response(message): return self._read_response(encrypted=encrypted) - if _is_uknown_message_error(message): + if _is_unknown_message_error(message): raise exceptions.CommandError('Invalid command') if _is_encryption_missing_error(message): |