Browse Source

Bugfix: spi_emit_nop: Correct counter logic

Luke Dashjr 12 years ago
parent
commit
6b7db93708
1 changed files with 1 additions and 1 deletions
  1. 1 1
      spidevc.c

+ 1 - 1
spidevc.c

@@ -250,7 +250,7 @@ void spi_emit_fasync(struct spi_port *port, int n)
 
 void spi_emit_nop(struct spi_port *port, int n) {
 	int i;
-	for (i = 0; i < n; n++) {
+	for (i = 0; i < n; ++i) {
 		spi_emit_buf(port, "\x0", 1);
 	}
 }