Skip to content

Commit

Permalink
Packet: fix pylint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenbe committed May 24, 2024
1 parent 8249a49 commit 4b468e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion comfospot40/packet.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ def __init__(self, data):
self.data = data

def __str__(self):
return " ".join(["0x{:02x}".format(x) for x in self.data])
return " ".join([f"0x{data:02x}" for data in self.data])

def calculatecrc(self, data, offset=0x57):
acc = offset
Expand Down

0 comments on commit 4b468e8

Please sign in to comment.