Skip to content

Commit

Permalink
Fix crash in android tv-app when handling level commands (#33409)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicelyjust authored and pull[bot] committed Aug 16, 2024
1 parent 9e52d4d commit 1170776
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/tv-app/android/java/LevelManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ void LevelManager::PostLevelChanged(chip::EndpointId endpoint, uint8_t value)

jboolean LevelManager::SetLevel(jint endpoint, jint value)
{
chip::DeviceLayer::StackLock stack;
chip::Protocols::InteractionModel::Status status = app::Clusters::LevelControl::Attributes::CurrentLevel::Set(
static_cast<chip::EndpointId>(endpoint), static_cast<uint8_t>(value));
return status == chip::Protocols::InteractionModel::Status::Success;
Expand Down

0 comments on commit 1170776

Please sign in to comment.