BootloaderProjectSTM32 icon indicating copy to clipboard operation
BootloaderProjectSTM32 copied to clipboard

I have a question in the Python Bootloader program

Open ingbeeedd opened this issue 5 years ago • 0 comments

def Write_to_serial_port(value, *length):
        data = struct.pack('>B', value)
        if (verbose_mode):
            value = bytearray(data)
            #print("   "+hex(value[0]), end='')
            print("   "+"0x{:02x}".format(value[0]),end=' ')
        if(mem_write_active and (not verbose_mode)):
                print("#",end=' ')
        ser.write(data)

Q. Why did you declare that the parameter 'length' is not used ?

ingbeeedd avatar Jul 08 '20 05:07 ingbeeedd