19 lines
415 B
C
19 lines
415 B
C
#include "cmd_custom.h"
|
|
#include "esp_console.h"
|
|
|
|
|
|
static int custom_command(int argc, char **argv) {
|
|
printf("i am amass.\n");
|
|
return 0;
|
|
}
|
|
|
|
void register_custom() {
|
|
const esp_console_cmd_t heap_cmd = {
|
|
.command = "amass",
|
|
.help = "test command.",
|
|
.hint = NULL,
|
|
.func = &custom_command,
|
|
};
|
|
ESP_ERROR_CHECK(esp_console_cmd_register(&heap_cmd));
|
|
}
|