|
14 | 14 | * See the License for the specific language governing permissions and
|
15 | 15 | * limitations under the License.
|
16 | 16 | */
|
17 |
| -#include "data-model-providers/codegen/EmberMetadata.h" |
18 | 17 | #include <data-model-providers/codegen/CodegenDataModelProvider.h>
|
19 | 18 |
|
20 | 19 | #include <access/AccessControl.h>
|
|
37 | 36 | #include <app/util/endpoint-config-api.h>
|
38 | 37 | #include <app/util/persistence/AttributePersistenceProvider.h>
|
39 | 38 | #include <app/util/persistence/DefaultAttributePersistenceProvider.h>
|
| 39 | +#include <data-model-providers/codegen/EmberMetadata.h> |
40 | 40 | #include <lib/core/CHIPError.h>
|
41 | 41 | #include <lib/core/DataModelTypes.h>
|
42 | 42 | #include <lib/support/CodeUtils.h>
|
@@ -326,8 +326,8 @@ CHIP_ERROR CodegenDataModelProvider::AcceptedCommands(const ConcreteClusterPath
|
326 | 326 | DataModel::ListBuilder<DataModel::AcceptedCommandEntry> & builder)
|
327 | 327 | {
|
328 | 328 | // Some CommandHandlerInterface instances are registered of ALL endpoints, so make sure first that
|
329 |
| - // the cluster actually exists on this endpoint before asking the CommandHandlerInterface whether it |
330 |
| - // supports the command. |
| 329 | + // the cluster actually exists on this endpoint before asking the CommandHandlerInterface what commands |
| 330 | + // it claims to support. |
331 | 331 | const EmberAfCluster * serverCluster = FindServerCluster(path);
|
332 | 332 | VerifyOrReturnError(serverCluster != nullptr, CHIP_ERROR_NOT_FOUND);
|
333 | 333 |
|
@@ -410,8 +410,8 @@ CHIP_ERROR CodegenDataModelProvider::GeneratedCommands(const ConcreteClusterPath
|
410 | 410 | DataModel::ListBuilder<CommandId> & builder)
|
411 | 411 | {
|
412 | 412 | // Some CommandHandlerInterface instances are registered of ALL endpoints, so make sure first that
|
413 |
| - // the cluster actually exists on this endpoint before asking the CommandHandlerInterface whether it |
414 |
| - // supports the command. |
| 413 | + // the cluster actually exists on this endpoint before asking the CommandHandlerInterface what commands |
| 414 | + // it claims to support. |
415 | 415 | const EmberAfCluster * serverCluster = FindServerCluster(path);
|
416 | 416 | VerifyOrReturnError(serverCluster != nullptr, CHIP_ERROR_NOT_FOUND);
|
417 | 417 |
|
|
0 commit comments