Browse Source

bitfury: Rename var to make its use clear

Sergey Tikhonov 12 years ago
parent
commit
84c7069cff
1 changed files with 2 additions and 2 deletions
  1. 2 2
      libbitfury.c

+ 2 - 2
libbitfury.c

@@ -151,11 +151,11 @@ void bitfury_set_freq(struct spi_port *port, int bits) {
 	bitfury_config_reg(port, 4, 1); /* Enable slow oscillator */
 	bitfury_config_reg(port, 4, 1); /* Enable slow oscillator */
 }
 }
 
 
-void bitfury_send_reinit(struct spi_port *port, int slot, int chip_n, int n) {
+void bitfury_send_reinit(struct spi_port *port, int slot, int chip_n, int osc6) {
 	spi_clear_buf(port);
 	spi_clear_buf(port);
 	spi_emit_break(port);
 	spi_emit_break(port);
 	spi_emit_fasync(port, chip_n);
 	spi_emit_fasync(port, chip_n);
-	bitfury_set_freq(port, n);
+	bitfury_set_freq(port, osc6);
 	bitfury_send_conf(port);
 	bitfury_send_conf(port);
 	bitfury_send_init(port);
 	bitfury_send_init(port);
 	spi_txrx(port);
 	spi_txrx(port);