aboutsummaryrefslogtreecommitdiffstats
path: root/wirish/comm
diff options
context:
space:
mode:
Diffstat (limited to 'wirish/comm')
-rw-r--r--wirish/comm/HardwareSPI.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/wirish/comm/HardwareSPI.cpp b/wirish/comm/HardwareSPI.cpp
index 2527a01..21ae180 100644
--- a/wirish/comm/HardwareSPI.cpp
+++ b/wirish/comm/HardwareSPI.cpp
@@ -208,11 +208,8 @@ uint8 HardwareSPI::send(uint8 data) {
}
uint8 HardwareSPI::send(uint8 *buf, uint32 len) {
- if (len == 0) {
- return 0;
- }
uint32 txed = 0;
- uint8 ret = 0; // shut up, GCC
+ uint8 ret = 0;
while (txed < len) {
this->write(buf[txed++]);
ret = this->read();