From a432c87cdcf3ccd7238e042da0be6a2e9cde0f0d Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Tue, 16 Aug 2011 03:09:52 -0400 Subject: HardwareSPI.cpp: minor HardwareSPI::send() cleanup. --- wirish/comm/HardwareSPI.cpp | 5 +---- 1 file changed, 1 insertion(+), 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(); -- cgit v1.2.3