time.sleep(0.1) # just to get sure that the bootloader is really running in new baudrate mode!
del tty
tty = SerialPort(DEVICE, 100, BOOTLOADER_BAUDRATE)
time.sleep(0.1) # just to get sure that the bootloader is really running in new baudrate mode!
del tty
tty = SerialPort(DEVICE, 100, BOOTLOADER_BAUDRATE)