Add missing board command

This commit is contained in:
Filip Ayazi 2023-03-10 00:49:05 +00:00
parent 11f0f12ee1
commit 3745e5740b
2 changed files with 8 additions and 0 deletions

View file

@ -58,6 +58,7 @@ uint8_t registered_loop_fn_count = 0;
const Command core_commands[] = { const Command core_commands[] = {
{"version", get_version}, {"version", get_version},
{"board", get_board},
{"list_modules", get_modules}, {"list_modules", get_modules},
{"eeprom_last_commit", get_eeprom_last_commit}, {"eeprom_last_commit", get_eeprom_last_commit},
{"system_status", get_system_status}, {"system_status", get_system_status},
@ -118,6 +119,12 @@ void get_version(String)
return; return;
} }
void get_board(String)
{
comPort->println(F(BOARD_STRING));
return;
}
void get_modules(String) void get_modules(String)
{ {
#if defined(LIGHTSENSOR) && defined(LIGHT_SENSOR_ADAFRUIT_TSL2591) #if defined(LIGHTSENSOR) && defined(LIGHT_SENSOR_ADAFRUIT_TSL2591)

View file

@ -43,6 +43,7 @@ uint8_t parse_arguments(char ** arguments, String, uint8_t);
extern void register_module(const Command commands[], void (*loop_fn)(void)); extern void register_module(const Command commands[], void (*loop_fn)(void));
void get_version(String); void get_version(String);
void get_board(String);
void get_modules(String); void get_modules(String);
void get_eeprom_last_commit(String); void get_eeprom_last_commit(String);
void get_system_status(String); void get_system_status(String);