clear history command

This commit is contained in:
okhsunrog 2024-02-23 14:17:58 +03:00
parent 6b639ff6fc
commit 3edc863806
3 changed files with 4 additions and 3 deletions

@ -1 +1 @@
Subproject commit 9d0787667cc3dd42c19786cf89def59b3f432ed3
Subproject commit 2782b9db6a22df017e3fd74092f93bd624a21e6e

View file

@ -1,5 +1,6 @@
#include "cmd_utils.h"
#include "esp_log.h"
#include "esp_vfs.h"
#include "inttypes.h"
#include "string.h"
#include "esp_console.h"
@ -58,6 +59,7 @@ static void register_timestamp(void) {
static int clrhistory(int argc, char **argv) {
linenoiseHistoryFree();
unlink(HISTORY_PATH);
linenoiseHistoryLoad(HISTORY_PATH);
return 0;
}

View file

@ -2,8 +2,7 @@
CONFIG_PARTITION_TABLE_CUSTOM=y
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"
CONFIG_PARTITION_TABLE_FILENAME="partitions.csv"
# CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y
# CONFIG_ESPTOOLPY_HEADER_FLASHSIZE_UPDATE=y
CONFIG_ESPTOOLPY_HEADER_FLASHSIZE_UPDATE=y
# UART
CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG=y