florisla / stm32loader

Flash firmware to STM32 microcontrollers using Python.
GNU General Public License v3.0
109 stars 53 forks source link

Exception `TypeError: an integer is required` due to Syntax typo #7

Closed Atokulus closed 6 years ago

Atokulus commented 6 years ago

https://github.com/florisla/stm32loader/blob/5e4fda1f93579634ef8bbc585790832f54417546/stm32loader/stm32loader.py#L271

Should be

self.serial.write(bytearray(data))

as data is already an array. I'm dearly sorry 😁 and thanks for the great support 👍

florisla commented 6 years ago

Thanks, there was another bug report about this (#6) but I completely overlooked that because I assumed you had tested your change.