Skip to content

Commit

Permalink
Merge pull request #40 from gbuddappagari/master
Browse files Browse the repository at this point in the history
Added wdmp error code for CCSP_ERR_METHOD_NOT_SUPPORTED
  • Loading branch information
schmidtw committed Oct 20, 2017
2 parents 605e794 + 3c0e959 commit 9c654d5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/wdmp-c.h
Expand Up @@ -78,7 +78,8 @@ typedef enum
WDMP_ERR_NOTIFY_IS_NULL,
WDMP_ERR_INVALID_WIFI_INDEX,
WDMP_ERR_INVALID_RADIO_INDEX,
WDMP_ERR_ATOMIC_GET_SET_FAILED
WDMP_ERR_ATOMIC_GET_SET_FAILED,
WDMP_ERR_METHOD_NOT_SUPPORTED
} WDMP_STATUS;

typedef struct
Expand Down
4 changes: 4 additions & 0 deletions src/wdmp_internal.c
Expand Up @@ -775,6 +775,10 @@ void wdmp_form_table_response(res_struct *resObj, cJSON *response)
{
strcpy(result,"Invalid Input parameter - CID/CMC value cannot be set");
}
else if (status == WDMP_ERR_METHOD_NOT_SUPPORTED)
{
strcpy(result,"Method is not supported");
}
else
{
strcpy(result,"Unknown Error");
Expand Down

0 comments on commit 9c654d5

Please sign in to comment.