diff usb488.py @ 58:0684a20cc5c3

Fix for Python 3
author Daniel O'Connor <doconnor@gsoft.com.au>
date Fri, 08 Jan 2021 14:03:52 +1030
parents 19045ad9f5f5
children dd27521002a5
line wrap: on
line diff
--- a/usb488.py	Fri Jan 08 14:01:41 2021 +1030
+++ b/usb488.py	Fri Jan 08 14:03:52 2021 +1030
@@ -217,7 +217,7 @@
         pkt = pkt + orddata
 
         # Align to 4 bytes
-        alignlen = ((len(pkt) / 4) + 1) * 4
+        alignlen = ((len(pkt) // 4) + 1) * 4
         pkt = pkt + [0] * (alignlen - len(pkt))
 
         # Bump the tag