mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-20 14:55:21 +03:00
Fix chipID decode
This commit is contained in:
parent
864cf3f3b4
commit
f226fe7c5c
1 changed files with 1 additions and 1 deletions
|
@ -190,7 +190,7 @@ static bool flashSpiInit(const flashConfig_t *flashConfig)
|
|||
#endif
|
||||
|
||||
// Newer chips
|
||||
chipID = (readIdResponse[2] << 16) | (readIdResponse[3] << 8) | (readIdResponse[4]);
|
||||
chipID = (readIdResponse[1] << 16) | (readIdResponse[2] << 8) | (readIdResponse[3]);
|
||||
|
||||
#ifdef USE_FLASH_W25N01G
|
||||
if (w25n01g_detect(&flashDevice, chipID)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue