Skip to content

Commit

Permalink
Adding some useful debug prints
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterC1965 committed Aug 29, 2024
1 parent 4d1cd68 commit 5ee6079
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion examples/energy-management-app/esp32/main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,16 @@ extern "C" void app_main()
chip::rpc::Init();
#endif

uint8_t features = static_cast<uint8_t>(chip::app::Clusters::DeviceEnergyManagement::sFeatureMap.Raw());

ESP_LOGI(TAG, "==================================================");
ESP_LOGI(TAG, "chip-esp32-energy-management-example starting");
#if defined(CONFIG_ENABLE_EXAMPLE_EVSE_DEVICE)
ESP_LOGI(TAG, "chip-esp32-energy-management-example evse starting. featureMap 0x%02x", features);
#elif defined(CONFIG_ENABLE_EXAMPLE_WATER_HEATER_DEVICE)
ESP_LOGI(TAG, "chip-esp32-energy-management-example water-heater starting. featureMap 0x%02x", features);
#else
ESP_LOGI(TAG, "chip-esp32-energy-management-example starting. featureMap 0x%02x", features);
#endif
ESP_LOGI(TAG, "==================================================");

#if CONFIG_ENABLE_CHIP_SHELL
Expand Down

0 comments on commit 5ee6079

Please sign in to comment.