X-Git-Url: http://git.droids-corp.org/?p=protos%2Fxbee-avr.git;a=blobdiff_plain;f=commands_gen.c;h=8f962e33bbf09b31aee8a3d25c27805fb9f1d2ca;hp=752b998c18fbb3ab45fe7318eb2b01ba5d481322;hb=HEAD;hpb=852fd37145aaaee0ce2117f5c8173f5b86020fd0 diff --git a/commands_gen.c b/commands_gen.c index 752b998..8f962e3 100644 --- a/commands_gen.c +++ b/commands_gen.c @@ -158,6 +158,7 @@ static const char PROGMEM uart_log[] = "uart"; static const char PROGMEM i2c_log[] = "i2c"; static const char PROGMEM default_log[] = "default"; static const char PROGMEM xbee_log[] = "xbee"; +static const char PROGMEM rc_proto_log[] = "rc_proto"; struct log_name_and_num { const char *name; @@ -169,6 +170,7 @@ static const struct log_name_and_num log_name_and_num[] = { { i2c_log, E_I2C }, { default_log, E_USER_DEFAULT }, { xbee_log, E_USER_XBEE }, + { rc_proto_log, E_USER_RC_PROTO }, }; static uint8_t @@ -324,7 +326,8 @@ static void cmd_log_type_parsed(void * parsed_result, void *data) const char PROGMEM str_log_arg1_type[] = "type"; const parse_token_string_t PROGMEM cmd_log_arg1_type = TOKEN_STRING_INITIALIZER(struct cmd_log_type_result, arg1, str_log_arg1_type); /* keep it sync with log_name_and_num above */ -const char PROGMEM str_log_arg2_type[] = "uart#rs#servo#traj#i2c#oa#strat#i2cproto#ext#sensor#bd#cs"; +const char PROGMEM str_log_arg2_type[] = + "uart#i2c#i2cproto#default#xbee#rc_proto"; const parse_token_string_t PROGMEM cmd_log_arg2_type = TOKEN_STRING_INITIALIZER(struct cmd_log_type_result, arg2, str_log_arg2_type); const char PROGMEM str_log_arg3[] = "on#off"; const parse_token_string_t PROGMEM cmd_log_arg3 = TOKEN_STRING_INITIALIZER(struct cmd_log_type_result, arg3, str_log_arg3);