This commit is contained in:
Lady Ada 2020-02-23 19:47:22 -05:00
parent 8fc60493f9
commit 1f034b34e9
1 changed files with 3 additions and 3 deletions

View File

@ -120,7 +120,7 @@ void Adafruit_SPIDevice::transfer(uint8_t *buffer, size_t len) {
} }
send = temp; send = temp;
} }
//Serial.print(send, HEX); // Serial.print(send, HEX);
for (int b = 7; b >= 0; b--) { for (int b = 7; b >= 0; b--) {
reply <<= 1; reply <<= 1;
if (_dataMode == SPI_MODE0) { if (_dataMode == SPI_MODE0) {
@ -140,7 +140,7 @@ void Adafruit_SPIDevice::transfer(uint8_t *buffer, size_t len) {
} }
} }
} }
//Serial.print(" : 0x"); Serial.print(reply, HEX); // Serial.print(" : 0x"); Serial.print(reply, HEX);
if (_dataOrder == SPI_BITORDER_LSBFIRST) { if (_dataOrder == SPI_BITORDER_LSBFIRST) {
// LSB is rare, if it happens we'll just flip the bits around for them // LSB is rare, if it happens we'll just flip the bits around for them
uint8_t temp = 0; uint8_t temp = 0;
@ -149,7 +149,7 @@ void Adafruit_SPIDevice::transfer(uint8_t *buffer, size_t len) {
} }
reply = temp; reply = temp;
} }
//Serial.print(" -> "); Serial.println(reply, HEX); // Serial.print(" -> "); Serial.println(reply, HEX);
buffer[i] = reply; buffer[i] = reply;
} }