1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-14 20:10:18 +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

@ -775,7 +775,7 @@ static void cliFlashWrite(char *cmdline)
printf("Missing text to write.\r\n");
} else {
flashfsSeekAbs(address);
flashfsWrite((uint8_t*)text, strlen(text));
flashfsWrite((uint8_t*)text, strlen(text), true);
flashfsFlushSync();
printf("Wrote %u bytes at %u.\r\n", strlen(text), address);