Overflow error on long messages

pull/1/head
syspart 5 years ago committed by GitHub
parent 11febb93a7
commit feda32e82d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      led-badge-11x44.py

@ -376,7 +376,9 @@ def header(lengths, speeds, modes, blink, ants):
h[8+i] = 16*s[i] + m[i]
for i in range(len(lengths)):
h[17+2*i] = lengths[i]
h[17+(2*i)-1] = lengths[i] // 256
h[17+(2*i)] = lengths[i] % 256
return h

Loading…
Cancel
Save