Explorar o código

Add debug line

Add debug line to copying loop.
Mateusz Bugdalski %!s(int64=13) %!d(string=hai) anos
pai
achega
5b04a5cd1a
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      lpc.c

+ 1 - 0
lpc.c

@@ -186,6 +186,7 @@ void lpc_write(struct lpc_device *dev, const struct sprog_data *d) {
       for(j=j; j>=0; j--)
 	if(chunk_sizes[j]<=i)
 	  break;
+      sprog_info("Copy from 0x%08x to %d (%d bytes)\n", 0x10000400+(chunk_size-i), offset+(chunk_size-i), chunk_sizes[j]);
       if(lpc_command(dev, "C %d %u %d\r\n", offset+(chunk_size-i), 0x10000400+(chunk_size-i), chunk_sizes[j]))
 	status = 0;
     }