1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-20 06:45:16 +03:00

Fix chipID decode

This commit is contained in:
Steve Evans 2021-07-28 18:04:22 +01:00
parent 864cf3f3b4
commit f226fe7c5c

View file

@ -190,7 +190,7 @@ static bool flashSpiInit(const flashConfig_t *flashConfig)
#endif #endif
// Newer chips // Newer chips
chipID = (readIdResponse[2] << 16) | (readIdResponse[3] << 8) | (readIdResponse[4]); chipID = (readIdResponse[1] << 16) | (readIdResponse[2] << 8) | (readIdResponse[3]);
#ifdef USE_FLASH_W25N01G #ifdef USE_FLASH_W25N01G
if (w25n01g_detect(&flashDevice, chipID)) { if (w25n01g_detect(&flashDevice, chipID)) {