mame82 / duck2spark

Converter for raw RubberDucky payloads to Digispark Arduino IDE Sketch source.
472 stars 95 forks source link

Error with hex() #16

Open Moritz448 opened 4 years ago

Moritz448 commented 4 years ago

If i run the example.sh, i got this Error: Traceback (most recent call last): File "duck2spark.py", line 155, in <module> main(sys.argv[1:]) File "duck2spark.py", line 140, in main result = generate_source(payload, init_delay=init_delay, loop_count=loop_count, loop_delay=loop_delay, blink=blink) File "duck2spark.py", line 65, in generate_source declare += str(hex(payload[c])) + ", " TypeError: hex() argument can't be converted to hex But if I remove the hex() command, the "Rubber Spark" ;) runs any kind of stupid stuff.

Yours, Moritz