-
Notifications
You must be signed in to change notification settings - Fork 87
Adding helpers for Cluster specific object files #1603
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -594,6 +594,20 @@ function asUpperCamelCase(label, options) { | |
const preserveAcronyms = options && options.hash.preserveAcronyms; | ||
return asCamelCase(label, false, preserveAcronyms); | ||
} | ||
/** | ||
* Same as asUpperCamelCase, but with a special case for "RFID". | ||
* Special case for cluster specific object files for Matter. | ||
* | ||
* @param {*} label | ||
* @param {*} options | ||
* @returns {string} | ||
*/ | ||
function chip_name_for_id_usage(label, options) { | ||
dhchandw marked this conversation as resolved.
Show resolved
Hide resolved
|
||
if (label == 'RFID') { | ||
dhchandw marked this conversation as resolved.
Show resolved
Hide resolved
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What if we did There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We could do this but this particular function is used 9 times for cluster specific object files |
||
return 'Rfid'; | ||
} | ||
dhchandw marked this conversation as resolved.
Show resolved
Hide resolved
|
||
return asUpperCamelCase(label, options); | ||
} | ||
|
||
function chip_friendly_endpoint_type_name(options) { | ||
let name = this.endpointTypeName; | ||
|
@@ -1272,6 +1286,7 @@ exports.zcl_commands_that_need_timed_invoke = | |
zcl_commands_that_need_timed_invoke; | ||
exports.if_is_fabric_scoped_struct = if_is_fabric_scoped_struct; | ||
exports.if_is_non_zero_default = if_is_non_zero_default; | ||
exports.chip_name_for_id_usage = chip_name_for_id_usage; | ||
|
||
exports.meta = { | ||
category: dbEnum.helperCategory.matter, | ||
|
Uh oh!
There was an error while loading. Please reload this page.