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

Comment updates, allow CLI flash read to read more in one operation

This commit is contained in:
Nicholas Sherlock 2015-01-28 20:48:06 +13:00
parent 3eb28f16ea
commit 2e14faeef6
3 changed files with 21 additions and 16 deletions

View file

@ -97,6 +97,7 @@ static uint8_t m25p16_readStatus()
bool m25p16_isReady()
{
// If couldBeBusy is false, don't bother to poll the flash chip for its status
couldBeBusy = couldBeBusy && ((m25p16_readStatus() & M25P16_STATUS_FLAG_WRITE_IN_PROGRESS) != 0);
return !couldBeBusy;
@ -126,7 +127,10 @@ static bool m25p16_readIdentification()
delay(50); // short delay required after initialisation of SPI device instance.
in[1] = 0; // Just in case transfer fails and writes nothing
/* Just in case transfer fails and writes nothing, so we don't try to verify the ID against random garbage
* from the stack:
*/
in[1] = 0;
ENABLE_M25P16;