Skip to content

Commit 60e88eb

Browse files
committed
Fix compilation error caused by migrating Chef
Fix compilation error caused by migrating latest Chef codes from Aug 31
1 parent 44b8621 commit 60e88eb

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

examples/chef/build_all.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ fi
1919

2020
device_types=(
2121
rootnode_airqualitysensor_e63187f6c9
22-
# rootnode_basicvideoplayer_0ff86e943b
22+
rootnode_basicvideoplayer_0ff86e943b
2323
rootnode_colortemperaturelight_hbUnzYVeyn
2424
rootnode_contactsensor_lFAGG1bfRO
2525
rootnode_dimmablelight_bCwGYSDpoe

examples/chef/common/clusters/media-input/MediaInputManager.h

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
#pragma once
2020

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

2423
#include <string>

examples/chef/common/clusters/media-playback/MediaPlaybackManager.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ CHIP_ERROR MediaPlaybackManager::HandleSetCurrentState(PlaybackStateEnum current
123123
ChipLogError(Zcl, "Unable to set CurrentState attribute, 0x%x", to_underlying(status));
124124
}
125125

126-
return CHIP_ERROR_IM_GLOBAL_STATUS_VALUE(status);
126+
return chip::ChipError(::chip::ChipError::SdkPart::kIMGlobalStatus, ::chip::to_underlying(status));
127127
}
128128

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

138-
return CHIP_ERROR_IM_GLOBAL_STATUS_VALUE(status);
138+
return chip::ChipError(::chip::ChipError::SdkPart::kIMGlobalStatus, ::chip::to_underlying(status));
139139
}
140140

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

0 commit comments

Comments
 (0)