Change some hex case

This commit is contained in:
Scott Lahteine
2017-12-15 15:17:52 -06:00
parent 4782acf60e
commit 8b12371e45
6 changed files with 32 additions and 32 deletions

View File

@ -56,7 +56,7 @@ uint8_t spiRec(void) {
uint8_t returnByte = SPI.transfer(0xFF);
SPI.endTransaction();
return returnByte;
// SPDR = 0XFF;
// SPDR = 0xFF;
// while (!TEST(SPSR, SPIF)) { /* Intentionally left empty */ }
// return SPDR;
}
@ -67,11 +67,11 @@ void spiRead(uint8_t* buf, uint16_t nbyte) {
SPI.transfer(buf, nbyte);
SPI.endTransaction();
//if (nbyte-- == 0) return;
// SPDR = 0XFF;
// SPDR = 0xFF;
//for (uint16_t i = 0; i < nbyte; i++) {
// while (!TEST(SPSR, SPIF)) { /* Intentionally left empty */ }
// buf[i] = SPDR;
// SPDR = 0XFF;
// SPDR = 0xFF;
//}
//while (!TEST(SPSR, SPIF)) { /* Intentionally left empty */ }
//buf[nbyte] = SPDR;