Skip to content

Commit

Permalink
Fix spi_transfer_bulk
Browse files Browse the repository at this point in the history
  • Loading branch information
hmaarrfk committed Dec 15, 2019
1 parent 05db823 commit 02b03c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 0.0.10

* Fix spi_transfer_bulk
### 0.0.9

* Enable control of SPI through the interface.
Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ int spi_transfer_bulk(CommandRouter *cmd, int argc, const char **argv) {
}
SPI.beginTransaction(my_spi_settings());
for (int i = 1; i < argc; i++) {
data = strtol(argv[1], nullptr, 0);
data = strtol(argv[i], nullptr, 0);
SPI.transfer(data);
}
SPI.endTransaction();
Expand Down

0 comments on commit 02b03c9

Please sign in to comment.