mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
fix failed spi flash detection
fallback to 4 pages when SPI IC is unknown some code styling remove some unused code
This commit is contained in:
parent
52c46db3db
commit
68e354d7ef
2 changed files with 6 additions and 17 deletions
|
@ -151,7 +151,6 @@ typedef struct spi_flash_s {
|
|||
const char *desc;
|
||||
} spi_flash_t;
|
||||
|
||||
// spi_flash_t is expected to be NULL terminated
|
||||
const static spi_flash_t SpiFlashTable[] = {
|
||||
// Manufacturer: Puya
|
||||
{ 0x856015, 32, "P25Q16H" },
|
||||
|
@ -165,6 +164,7 @@ const static spi_flash_t SpiFlashTable[] = {
|
|||
{ 0xEF4016, 64, "W25Q32BV" },
|
||||
|
||||
{ 0xEF7022, 4, "W25Q02JV" },
|
||||
// (default) last record
|
||||
{ 0x000000, 4, "Unknown!" }
|
||||
};
|
||||
|
||||
|
@ -174,7 +174,7 @@ const static spi_flash_t SpiFlashTable[] = {
|
|||
|
||||
extern uint8_t spi_flash_p64k;
|
||||
|
||||
bool FlashDetect(bool);
|
||||
bool FlashDetect(void);
|
||||
|
||||
#endif // #ifndef AS_BOOTROM
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue