remove unused commands

This commit is contained in:
Morgan 'ARR\!' Allen 2020-10-12 21:37:52 -07:00
parent 5e777c5df2
commit 9d577d8c91
1 changed files with 1 additions and 16 deletions

View File

@ -8,9 +8,7 @@
#include "driver/uart.h"
#include "linenoise/linenoise.h"
#include "argtable3/argtable3.h"
#include "esp32-lora.h"
#include "cmd_lora.h"
#include "main.h"
// main console setup and task, assume mostly copied from example
@ -50,24 +48,11 @@ void console_task(void *args) {
linenoiseHistorySetMaxLen(100);
esp_console_register_help_command();
cmd_bw_register(lorcomm_cfg.lora);
cmd_cr_register(lorcomm_cfg.lora);
cmd_sf_register(lorcomm_cfg.lora);
cmd_preamble_register(lorcomm_cfg.lora);
cmd_send_register(lorcomm_cfg.lora);
cmd_dump_register(lorcomm_cfg.lora);
cmd_hostname_register(lorcomm_cfg.lora);
cmd_ota_register(lorcomm_cfg.lora);
char *prompt;
while(true) {
asprintf(&prompt, LOG_COLOR_I "%s bw: %d sf: %d cr: %d> " LOG_RESET_COLOR,
lorcomm_cfg.hostname,
lora.bandwidth,
lora.spreadingFactor,
lora.codingRate
);
asprintf(&prompt, LOG_COLOR_I "> " LOG_RESET_COLOR);
char* line = linenoise(prompt);