Skip to content

Commit

Permalink
Merge pull request #131 from adafruit/fix-123
Browse files Browse the repository at this point in the history
fix Serial print without debug
  • Loading branch information
hathach committed Oct 20, 2022
2 parents 495ff33 + 6f00b27 commit 03d77d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Adafruit_SPIFlashBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,11 @@ bool Adafruit_SPIFlashBase::begin(SPIFlash_Device_t const *flash_devs,
}

if (_flash_dev == NULL) {
#if SPIFLASH_DEBUG
Serial.print("Unknown flash device 0x");
Serial.println(
((uint32_t)jedec_ids[0]) << 16 | jedec_ids[1] << 8 | jedec_ids[2], HEX);
#endif
return false;
}

Expand Down

0 comments on commit 03d77d3

Please sign in to comment.