Skip to content

Commit

Permalink
Fix compilation error caused by migrating Chef
Browse files Browse the repository at this point in the history
Fix compilation error caused by migrating latest Chef codes from Aug 31
  • Loading branch information
erwinpan1 committed Sep 2, 2024
1 parent 44b8621 commit 60e88eb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/chef/build_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fi

device_types=(
rootnode_airqualitysensor_e63187f6c9
# rootnode_basicvideoplayer_0ff86e943b
rootnode_basicvideoplayer_0ff86e943b
rootnode_colortemperaturelight_hbUnzYVeyn
rootnode_contactsensor_lFAGG1bfRO
rootnode_dimmablelight_bCwGYSDpoe
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

#pragma once

#include <app/AttributeValueEncoder.h>
#include <app/clusters/media-input-server/media-input-server.h>

#include <string>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ CHIP_ERROR MediaPlaybackManager::HandleSetCurrentState(PlaybackStateEnum current
ChipLogError(Zcl, "Unable to set CurrentState attribute, 0x%x", to_underlying(status));
}

return CHIP_ERROR_IM_GLOBAL_STATUS_VALUE(status);
return chip::ChipError(::chip::ChipError::SdkPart::kIMGlobalStatus, ::chip::to_underlying(status));
}

CHIP_ERROR MediaPlaybackManager::HandleSetPlaybackSpeed(float playbackSpeed)
Expand All @@ -135,7 +135,7 @@ CHIP_ERROR MediaPlaybackManager::HandleSetPlaybackSpeed(float playbackSpeed)
ChipLogError(Zcl, "Unable to set PlaybackSpeed attribute, 0x%x", to_underlying(status));
}

return CHIP_ERROR_IM_GLOBAL_STATUS_VALUE(status);
return chip::ChipError(::chip::ChipError::SdkPart::kIMGlobalStatus, ::chip::to_underlying(status));
}

void MediaPlaybackManager::HandlePlay(CommandResponseHelper<Commands::PlaybackResponse::Type> & helper)
Expand Down

0 comments on commit 60e88eb

Please sign in to comment.