add: mem spiffs wipe

This commit is contained in:
iceman1001 2020-08-08 12:33:12 +02:00
commit ccbfdf9e88
5 changed files with 93 additions and 23 deletions

View file

@ -1900,6 +1900,13 @@ static void PacketReceived(PacketCommandNG *packet) {
LED_B_OFF();
break;
}
case CMD_SPIFFS_WIPE: {
LED_B_ON();
rdv40_spiffs_safe_wipe();
reply_ng(CMD_SPIFFS_WIPE, PM3_SUCCESS, NULL, 0);
LED_B_OFF();
break;
}
case CMD_FLASHMEM_SET_SPIBAUDRATE: {
if (packet->length != sizeof(uint32_t))
break;