Skip to content
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

Request for source code error correction #140

Open
KIMSUNIK opened this issue Jan 8, 2024 · 1 comment
Open

Request for source code error correction #140

KIMSUNIK opened this issue Jan 8, 2024 · 1 comment

Comments

@KIMSUNIK
Copy link

KIMSUNIK commented Jan 8, 2024

CAP_ENUM_MOTIONSENSOR_MOTION_VALUE_MAX

CAP_ENUM_TVOCHEALTHCONCERN_VALUE_MAX

https://github.com/SmartThingsCommunity/st-device-sdk-c-ref/blob/develop/apps/capability_sample/caps_tvocHealthConcern.c

line-30
static int caps_tvocHealthConcern_attr_tvocHealthConcern_str2idx(const char *value)
{
int index;

for (index = 0; index < CAP_ENUM_MOTIONSENSOR_MOTION_VALUE_MAX; index++) {
    if (!strcmp(value, caps_helper_tvocHealthConcern.attr_tvocHealthConcern.values[index])) {
        return index;
    }
}
return -1;

}

@junyoun-kim
Copy link
Collaborator

Thanks, we fix it with this #141

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants