Skip to content

Commit 4b82850

Browse files
silabs-borislrzr
authored andcommitted
uic: zpc: UIC-3488: set_version now accept a endpoint node
This allow to set the version for a test with multiple endpoints (cherry picked from commit 2ad83209f99ce6b2ac39531899e2aaf0a7b79ee5) Forwarded: #11 Signed-off-by: Philippe Coval <philippe.coval@silabs.com>
1 parent b0f6836 commit 4b82850

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

applications/zpc/components/zwave_command_classes/test/helpers/zwave_command_class_test_helper.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,9 @@ void zwave_frame::add_bitmask(uint8_t size, uint32_t bitmask)
172172
////////////////////////////////////////////////////////////////////////////////////
173173
// Attribute store helpers
174174
////////////////////////////////////////////////////////////////////////////////////
175-
void helper_set_version(const zwave_cc_version_t &version)
175+
void helper_set_version(const zwave_cc_version_t &version, attribute_store::attribute parent)
176176
{
177-
cpp_endpoint_id_node.add_node(current_command_class_id << 8 | 0x01)
177+
parent.add_node(current_command_class_id << 8 | 0x01)
178178
.set_reported(version);
179179
}
180180

applications/zpc/components/zwave_command_classes/test/helpers/zwave_command_class_test_helper.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ class zwave_frame : public std::vector<uint8_t> {
226226
*
227227
* @brief Command class version
228228
*/
229-
void helper_set_version(const zwave_cc_version_t &version);
229+
void helper_set_version(const zwave_cc_version_t &version, attribute_store::attribute parent = cpp_endpoint_id_node);
230230

231231
/**
232232
* @brief Get version for current class

0 commit comments

Comments
 (0)