show board profile on boot

This commit is contained in:
proddy
2021-03-30 11:59:25 +02:00
parent ed177396b2
commit ca083166a1

View File

@@ -75,9 +75,13 @@ StateUpdateResult WebSettings::update(JsonObject & root, WebSettings & settings)
uint8_t default_tx_gpio = data[3]; uint8_t default_tx_gpio = data[3];
uint8_t default_pbutton_gpio = data[4]; uint8_t default_pbutton_gpio = data[4];
EMSESP::logger().info(F("EMS-ESP version %s"), EMSESP_APP_VERSION);
// check to see if we have a settings file, if not it's a fresh install // check to see if we have a settings file, if not it's a fresh install
if (!root.size()) { if (!root.size()) {
EMSESP::logger().info(F("Initializing configuration with board profile %s"), settings.board_profile.c_str()); EMSESP::logger().info(F("Initializing configuration with board profile %s"), settings.board_profile.c_str());
} else {
EMSESP::logger().info(F("Using configuration from board profile %s"), settings.board_profile.c_str());
} }
int prev; int prev;