summaryrefslogtreecommitdiffstats
path: root/glucometerutils/drivers/fsoptium.py
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@flameeyes.com>2020-03-14 19:13:55 +0100
committerDiego Elio Pettenò <flameeyes@flameeyes.com>2020-03-14 19:13:55 +0100
commit9fb0f80e84f752e3b3c4ae5e1071a6edcbf56b94 (patch)
treeebb59348f88a455cdc06b87aa8da821637dc4e55 /glucometerutils/drivers/fsoptium.py
parentExpand line length in Emacs to match black. (diff)
downloadglucometerutils-9fb0f80e84f752e3b3c4ae5e1071a6edcbf56b94.tar
glucometerutils-9fb0f80e84f752e3b3c4ae5e1071a6edcbf56b94.tar.gz
glucometerutils-9fb0f80e84f752e3b3c4ae5e1071a6edcbf56b94.tar.bz2
glucometerutils-9fb0f80e84f752e3b3c4ae5e1071a6edcbf56b94.tar.lz
glucometerutils-9fb0f80e84f752e3b3c4ae5e1071a6edcbf56b94.tar.xz
glucometerutils-9fb0f80e84f752e3b3c4ae5e1071a6edcbf56b94.tar.zst
glucometerutils-9fb0f80e84f752e3b3c4ae5e1071a6edcbf56b94.zip
Diffstat (limited to 'glucometerutils/drivers/fsoptium.py')
-rw-r--r--glucometerutils/drivers/fsoptium.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/glucometerutils/drivers/fsoptium.py b/glucometerutils/drivers/fsoptium.py
index 5c3971e..77244af 100644
--- a/glucometerutils/drivers/fsoptium.py
+++ b/glucometerutils/drivers/fsoptium.py
@@ -89,7 +89,7 @@ class Device(serial.SerialDevice, driver_base.GlucometerDriver):
DEFAULT_CABLE_ID = "1a61:3420"
def _send_command(self, command):
- cmd_bytes = bytes("$%s\r\n" % command, "ascii")
+ cmd_bytes = bytes(f"$%s\r\n" % command, "ascii")
logging.debug("Sending command: %r", cmd_bytes)
self.serial_.write(cmd_bytes)