Bladeren bron

Initialize variable

Initialize variable last_i with 0 - it indicates the line number, from which the transmission may be restarted if needed.
Mateusz Bugdalski 13 jaren geleden
bovenliggende
commit
8350a6f63d
1 gewijzigde bestanden met toevoegingen van 1 en 0 verwijderingen
  1. 1 0
      lpc.c

+ 1 - 0
lpc.c

@@ -116,6 +116,7 @@ void lpc_write_ram(struct lpc_device *dev, const struct sprog_data *d, unsigned
   lpc_command("W %u %u\r\n", addr, d->size);
   sprog_error("Writing %d bytes\n", d->size);
   
+  last_i = 0;
   last_offset = 0;
   offset = 0;
   sprog_progress((offset*100)/d->size);