Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
adeebshihadeh committed Aug 1, 2023
1 parent 538a17a commit 883e2e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion can/packer_pyx.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ cdef class CANPacker:

cpdef make_can_msg(self, name_or_addr, bus, values):
cdef int addr
if type(name_or_addr) == int:
if isinstance(name_or_addr, int):
addr = name_or_addr
else:
addr = self.name_to_address[name_or_addr.encode("utf8")]
Expand Down

0 comments on commit 883e2e8

Please sign in to comment.