Browse Source

Merge pull request #13 from sumotoy/master

A serial debug line should be commented.
main
Paul Stoffregen 8 years ago
parent
commit
6696bc1389
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      SPI.cpp

+ 1
- 1
SPI.cpp View File

uint8_t pin1_mask, pin2_mask; uint8_t pin1_mask, pin2_mask;
if ((pin1_mask = (uint8_t)pinIsChipSelect(pin1)) == 0) return false; if ((pin1_mask = (uint8_t)pinIsChipSelect(pin1)) == 0) return false;
if ((pin2_mask = (uint8_t)pinIsChipSelect(pin2)) == 0) return false; if ((pin2_mask = (uint8_t)pinIsChipSelect(pin2)) == 0) return false;
Serial.printf("pinIsChipSelect %d %d %x %x\n\r", pin1, pin2, pin1_mask, pin2_mask);
//Serial.printf("pinIsChipSelect %d %d %x %x\n\r", pin1, pin2, pin1_mask, pin2_mask);
if ((pin1_mask & pin2_mask) != 0) return false; if ((pin1_mask & pin2_mask) != 0) return false;
return true; return true;
} }

Loading…
Cancel
Save