diff --git a/src/main.cpp b/src/main.cpp index 6c5e692..ca0a283 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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) diff --git a/src/main.h b/src/main.h index f492713..b4d380b 100644 --- a/src/main.h +++ b/src/main.h @@ -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);