Use 0xFF (not 'ff') for byte transfer

This commit is contained in:
Scott Lahteine
2020-10-08 15:17:19 -05:00
parent 321afd5fef
commit f72c559824
2 changed files with 4 additions and 6 deletions

View File

@ -80,16 +80,14 @@ void W25QXXFlash::init(uint8_t spiRate) {
* @brief Receive a single byte from the SPI port.
*
* @return Byte received
*
* @details
*/
uint8_t W25QXXFlash::spi_flash_Rec() {
uint8_t returnByte = SPI.transfer(ff);
const uint8_t returnByte = SPI.transfer(0xFF);
return returnByte;
}
uint8_t W25QXXFlash::spi_flash_read_write_byte(uint8_t data) {
uint8_t returnByte = SPI.transfer(data);
const uint8_t returnByte = SPI.transfer(data);
return returnByte;
}