@@ -506,30 +506,30 @@ void TestHandlerFunctions(nlTestSuite * aSuite, void * aContext)
506
506
static const uint16_t LC_av_payload[2 ] = { 0x64 , 0x01F0 };
507
507
static const uint16_t CC_av_payload[8 ] = { 0 };
508
508
509
- OOPairs[0 ].attributeID = kOnOffAttId ;
510
- OOPairs[0 ].attributeValue = OO_av_payload;
511
-
512
- LCPairs[0 ].attributeID = kCurrentLevelId ;
513
- LCPairs[0 ].attributeValue = LC_av_payload[0 ];
514
- LCPairs[1 ].attributeID = kCurrentFrequencyId ;
515
- LCPairs[1 ].attributeValue = LC_av_payload[1 ];
516
-
517
- CCPairs[0 ].attributeID = kCurrentSaturationId ;
518
- CCPairs[0 ].attributeValue = CC_av_payload[0 ];
519
- CCPairs[1 ].attributeID = kCurrentXId ;
520
- CCPairs[1 ].attributeValue = CC_av_payload[1 ];
521
- CCPairs[2 ].attributeID = kCurrentYId ;
522
- CCPairs[2 ].attributeValue = CC_av_payload[2 ];
523
- CCPairs[3 ].attributeID = kColorTemperatureMiredsId ;
524
- CCPairs[3 ].attributeValue = CC_av_payload[3 ];
525
- CCPairs[4 ].attributeID = kEnhancedCurrentHueId ;
526
- CCPairs[4 ].attributeValue = CC_av_payload[4 ];
527
- CCPairs[5 ].attributeID = kColorLoopActiveId ;
528
- CCPairs[5 ].attributeValue = CC_av_payload[5 ];
529
- CCPairs[6 ].attributeID = kColorLoopDirectionId ;
530
- CCPairs[6 ].attributeValue = CC_av_payload[6 ];
531
- CCPairs[7 ].attributeID = kColorLoopTimeId ;
532
- CCPairs[7 ].attributeValue = CC_av_payload[7 ];
509
+ OOPairs[0 ].attributeID = kOnOffAttId ;
510
+ OOPairs[0 ].valueUnsigned8 . SetValue ( OO_av_payload) ;
511
+
512
+ LCPairs[0 ].attributeID = kCurrentLevelId ;
513
+ LCPairs[0 ].valueUnsigned8 . SetValue ( static_cast < uint8_t >( LC_av_payload[0 ])) ;
514
+ LCPairs[1 ].attributeID = kCurrentFrequencyId ;
515
+ LCPairs[1 ].valueUnsigned16 . SetValue ( LC_av_payload[1 ]) ;
516
+
517
+ CCPairs[0 ].attributeID = kCurrentSaturationId ;
518
+ CCPairs[0 ].valueUnsigned8 . SetValue ( static_cast < uint8_t >( CC_av_payload[0 ])) ;
519
+ CCPairs[1 ].attributeID = kCurrentXId ;
520
+ CCPairs[1 ].valueUnsigned16 . SetValue ( CC_av_payload[1 ]) ;
521
+ CCPairs[2 ].attributeID = kCurrentYId ;
522
+ CCPairs[2 ].valueUnsigned16 . SetValue ( CC_av_payload[2 ]) ;
523
+ CCPairs[3 ].attributeID = kColorTemperatureMiredsId ;
524
+ CCPairs[3 ].valueUnsigned16 . SetValue ( CC_av_payload[3 ]) ;
525
+ CCPairs[4 ].attributeID = kEnhancedCurrentHueId ;
526
+ CCPairs[4 ].valueUnsigned16 . SetValue ( CC_av_payload[4 ]) ;
527
+ CCPairs[5 ].attributeID = kColorLoopActiveId ;
528
+ CCPairs[5 ].valueUnsigned8 . SetValue ( static_cast < uint8_t >( CC_av_payload[5 ])) ;
529
+ CCPairs[6 ].attributeID = kColorLoopDirectionId ;
530
+ CCPairs[6 ].valueUnsigned8 . SetValue ( static_cast < uint8_t >( CC_av_payload[6 ])) ;
531
+ CCPairs[7 ].attributeID = kColorLoopTimeId ;
532
+ CCPairs[7 ].valueUnsigned8 . SetValue ( static_cast < uint8_t >( CC_av_payload[7 ])) ;
533
533
534
534
// Initialize Extension Field sets as if they were received by add commands
535
535
OOextensionFieldSet.clusterID = kOnOffClusterId ;
@@ -648,10 +648,9 @@ void TestHandlerFunctions(nlTestSuite * aSuite, void * aContext)
648
648
app::Clusters::ScenesManagement::Structs::ExtensionFieldSet::DecodableType extensionFieldFailTestIn;
649
649
app::Clusters::ScenesManagement::Structs::AttributeValuePair::Type TooManyPairs[16 ];
650
650
651
- uint8_t payloadOk = 0 ;
652
651
for (uint8_t i = 0 ; i < 16 ; i++)
653
652
{
654
- TooManyPairs[i].attributeValue = payloadOk ;
653
+ TooManyPairs[i].valueUnsigned8 . SetValue ( 0 ) ;
655
654
}
656
655
657
656
extensionFieldFailTestOut.clusterID = kColorControlClusterId ;
0 commit comments