forked from test34/can_wizard
remove some comments and redundant type
This commit is contained in:
parent
6a539824be
commit
cbf3d97f5c
4 changed files with 1 additions and 10 deletions
|
@ -3,3 +3,4 @@ TODO:
|
||||||
clear history and clear screen commands
|
clear history and clear screen commands
|
||||||
code refactoring
|
code refactoring
|
||||||
updating prompt conflicts with some hints and with some arguments with cansend
|
updating prompt conflicts with some hints and with some arguments with cansend
|
||||||
|
test dumb mode
|
||||||
|
|
|
@ -85,7 +85,6 @@ bool matches_filters(twai_message_t *msg) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: add software filtering
|
|
||||||
void can_task(void* arg) {
|
void can_task(void* arg) {
|
||||||
static const TickType_t can_task_timeout = pdMS_TO_TICKS(200);
|
static const TickType_t can_task_timeout = pdMS_TO_TICKS(200);
|
||||||
uint32_t alerts = 0;
|
uint32_t alerts = 0;
|
||||||
|
|
|
@ -8,14 +8,6 @@
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <list.h>
|
#include <list.h>
|
||||||
|
|
||||||
typedef struct {
|
|
||||||
char status[30];
|
|
||||||
int tec;
|
|
||||||
int rec;
|
|
||||||
int color;
|
|
||||||
bool extd;
|
|
||||||
} can_prompt_t;
|
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
CAN_NOT_INSTALLED = 0,
|
CAN_NOT_INSTALLED = 0,
|
||||||
CAN_STOPPED = 1,
|
CAN_STOPPED = 1,
|
||||||
|
|
|
@ -149,7 +149,6 @@ static int canup(int argc, char **argv) {
|
||||||
esp_err_t res;
|
esp_err_t res;
|
||||||
static twai_timing_config_t t_config;
|
static twai_timing_config_t t_config;
|
||||||
twai_general_config_t gen_cfg = default_g_config;
|
twai_general_config_t gen_cfg = default_g_config;
|
||||||
// TODO: add CAN filtering
|
|
||||||
twai_filter_config_t f_config;
|
twai_filter_config_t f_config;
|
||||||
int nerrors = arg_parse(argc, argv, (void **) &canup_args);
|
int nerrors = arg_parse(argc, argv, (void **) &canup_args);
|
||||||
if (nerrors != 0) {
|
if (nerrors != 0) {
|
||||||
|
|
Loading…
Reference in a new issue