forked from test34/can_wizard
clear history command
This commit is contained in:
parent
6b639ff6fc
commit
3edc863806
3 changed files with 4 additions and 3 deletions
|
@ -1 +1 @@
|
||||||
Subproject commit 9d0787667cc3dd42c19786cf89def59b3f432ed3
|
Subproject commit 2782b9db6a22df017e3fd74092f93bd624a21e6e
|
|
@ -1,5 +1,6 @@
|
||||||
#include "cmd_utils.h"
|
#include "cmd_utils.h"
|
||||||
#include "esp_log.h"
|
#include "esp_log.h"
|
||||||
|
#include "esp_vfs.h"
|
||||||
#include "inttypes.h"
|
#include "inttypes.h"
|
||||||
#include "string.h"
|
#include "string.h"
|
||||||
#include "esp_console.h"
|
#include "esp_console.h"
|
||||||
|
@ -58,6 +59,7 @@ static void register_timestamp(void) {
|
||||||
|
|
||||||
static int clrhistory(int argc, char **argv) {
|
static int clrhistory(int argc, char **argv) {
|
||||||
linenoiseHistoryFree();
|
linenoiseHistoryFree();
|
||||||
|
unlink(HISTORY_PATH);
|
||||||
linenoiseHistoryLoad(HISTORY_PATH);
|
linenoiseHistoryLoad(HISTORY_PATH);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,8 +2,7 @@
|
||||||
CONFIG_PARTITION_TABLE_CUSTOM=y
|
CONFIG_PARTITION_TABLE_CUSTOM=y
|
||||||
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"
|
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"
|
||||||
CONFIG_PARTITION_TABLE_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
|
# UART
|
||||||
CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG=y
|
CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG=y
|
||||||
|
|
Loading…
Reference in a new issue