1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-19 09:54:15 +01:00

Flash: Wrote status instead of read it

This commit is contained in:
James Cotton 2012-01-26 11:17:00 -06:00
parent 69dc5abf0c
commit e69a0937bc

View File

@ -193,7 +193,7 @@ int32_t PIOS_Flash_Jedec_ReadStatus()
if(PIOS_Flash_Jedec_Validate(flash_dev) != 0)
return -1;
uint8_t out[2] = {JEDEC_WRITE_STATUS, 0};
uint8_t out[2] = {JEDEC_READ_STATUS, 0};
uint8_t in[2] = {0,0};
if(PIOS_Flash_Jedec_ClaimBus() < 0)
return -1;