BootloaderProjectSTM32
BootloaderProjectSTM32 copied to clipboard
I have a question in the Python Bootloader program
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 ?