git.droids-corp.org
/
aversive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
prog_fuse.sh: reindent file
[aversive.git]
/
projects
/
microb2010
/
ballboard
/
commands_gen.c
diff --git
a/projects/microb2010/ballboard/commands_gen.c
b/projects/microb2010/ballboard/commands_gen.c
index
66dccc1
..
b314938
100644
(file)
--- a/
projects/microb2010/ballboard/commands_gen.c
+++ b/
projects/microb2010/ballboard/commands_gen.c
@@
-358,6
+358,7
@@
static const prog_char i2cproto_log[] = "i2cproto";
static const prog_char sensor_log[] = "sensor";
static const prog_char block_log[] = "bd";
static const prog_char state_log[] = "state";
static const prog_char sensor_log[] = "sensor";
static const prog_char block_log[] = "bd";
static const prog_char state_log[] = "state";
+static const prog_char beacon_log[] = "beacon";
struct log_name_and_num {
const prog_char * name;
struct log_name_and_num {
const prog_char * name;
@@
-371,6
+372,7
@@
static const struct log_name_and_num log_name_and_num[] = {
{ sensor_log, E_USER_SENSOR },
{ block_log, E_BLOCKING_DETECTION_MANAGER },
{ state_log, E_USER_ST_MACH },
{ sensor_log, E_USER_SENSOR },
{ block_log, E_BLOCKING_DETECTION_MANAGER },
{ state_log, E_USER_ST_MACH },
+ { beacon_log, E_USER_BEACON },
};
static uint8_t
};
static uint8_t
@@
-519,7
+521,7
@@
static void cmd_log_type_parsed(void * parsed_result, void * data)
prog_char str_log_arg1_type[] = "type";
parse_pgm_token_string_t 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 */
prog_char str_log_arg1_type[] = "type";
parse_pgm_token_string_t 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 */
-prog_char str_log_arg2_type[] = "uart#i2c#i2cproto#sensor#bd#state";
+prog_char str_log_arg2_type[] = "uart#i2c#i2cproto#sensor#bd#state
#beacon
";
parse_pgm_token_string_t cmd_log_arg2_type = TOKEN_STRING_INITIALIZER(struct cmd_log_type_result, arg2, str_log_arg2_type);
prog_char str_log_arg3[] = "on#off";
parse_pgm_token_string_t cmd_log_arg3 = TOKEN_STRING_INITIALIZER(struct cmd_log_type_result, arg3, str_log_arg3);
parse_pgm_token_string_t cmd_log_arg2_type = TOKEN_STRING_INITIALIZER(struct cmd_log_type_result, arg2, str_log_arg2_type);
prog_char str_log_arg3[] = "on#off";
parse_pgm_token_string_t cmd_log_arg3 = TOKEN_STRING_INITIALIZER(struct cmd_log_type_result, arg3, str_log_arg3);