Browse Source

fix for Python3, make this a byte string so it works w/ bytearray

mbed-sx1276
John-Mark Gurney 3 years ago
parent
commit
21f81daeac
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      strobe/python/Strobe/Strobe.py

+ 1
- 1
strobe/python/Strobe/Strobe.py View File

@@ -28,7 +28,7 @@ class Strobe(object):
self.initialized = False
self.st = bytearray(F.nbytes)
domain = bytearray([1,self.R,1,0,1,12*8]) \
+ bytearray("STROBEv1.0.2")
+ bytearray(b"STROBEv1.0.2")
if doInit: self._duplex(domain, forceF=True)
# cSHAKE separation is done.


Loading…
Cancel
Save