Skip to content

Commit

Permalink
Update to ESP32 featureMap to avoid static cast per review comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesharrow committed Aug 29, 2024
1 parent 28c6c8e commit 82e120e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions examples/energy-management-app/esp32/main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,15 +236,13 @@ extern "C" void app_main()
chip::rpc::Init();
#endif

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

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

Expand Down

0 comments on commit 82e120e

Please sign in to comment.