Add missing board command
This commit is contained in:
parent
11f0f12ee1
commit
3745e5740b
2 changed files with 8 additions and 0 deletions
|
|
@ -58,6 +58,7 @@ uint8_t registered_loop_fn_count = 0;
|
|||
|
||||
const Command core_commands[] = {
|
||||
{"version", get_version},
|
||||
{"board", get_board},
|
||||
{"list_modules", get_modules},
|
||||
{"eeprom_last_commit", get_eeprom_last_commit},
|
||||
{"system_status", get_system_status},
|
||||
|
|
@ -118,6 +119,12 @@ void get_version(String)
|
|||
return;
|
||||
}
|
||||
|
||||
void get_board(String)
|
||||
{
|
||||
comPort->println(F(BOARD_STRING));
|
||||
return;
|
||||
}
|
||||
|
||||
void get_modules(String)
|
||||
{
|
||||
#if defined(LIGHTSENSOR) && defined(LIGHT_SENSOR_ADAFRUIT_TSL2591)
|
||||
|
|
|
|||
|
|
@ -43,6 +43,7 @@ uint8_t parse_arguments(char ** arguments, String, uint8_t);
|
|||
extern void register_module(const Command commands[], void (*loop_fn)(void));
|
||||
|
||||
void get_version(String);
|
||||
void get_board(String);
|
||||
void get_modules(String);
|
||||
void get_eeprom_last_commit(String);
|
||||
void get_system_status(String);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue