1
0
Fork 0
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:
Nicholas Sherlock 2015-02-13 20:28:19 +13:00
parent 5651e65a0b
commit 80ea5e4419
6 changed files with 65 additions and 36 deletions

View file

@ -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);