mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 21:35:44 +03:00
Add flash ready state to MSP response, add flash async block write
This commit is contained in:
parent
5651e65a0b
commit
80ea5e4419
6 changed files with 65 additions and 36 deletions
|
@ -533,13 +533,15 @@ reset:
|
|||
|
||||
static void serializeDataflashSummaryReply(void)
|
||||
{
|
||||
headSerialReply(3 * 4);
|
||||
headSerialReply(1 + 3 * 4);
|
||||
#ifdef FLASHFS
|
||||
const flashGeometry_t *geometry = flashfsGetGeometry();
|
||||
serialize8(flashfsIsReady() ? 1 : 0);
|
||||
serialize32(geometry->sectors);
|
||||
serialize32(geometry->totalSize);
|
||||
serialize32(flashfsGetOffset()); // Effectively the current number of bytes stored on the volume
|
||||
#else
|
||||
serialize8(0);
|
||||
serialize32(0);
|
||||
serialize32(0);
|
||||
serialize32(0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue