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:
parent
69dc5abf0c
commit
e69a0937bc
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user