st-device-sdk-c-ref icon indicating copy to clipboard operation
st-device-sdk-c-ref copied to clipboard

Request for source code error correction

Open KIMSUNIK opened this issue 1 year ago • 1 comments

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;

}

KIMSUNIK avatar Jan 08 '24 23:01 KIMSUNIK

Thanks, we fix it with this #141

junyoun-kim avatar Jan 09 '24 02:01 junyoun-kim