Skip to content
This repository has been archived by the owner on Oct 27, 2022. It is now read-only.

Commit

Permalink
Merge branch 'feature/update_product_info' into 'master'
Browse files Browse the repository at this point in the history
feat: update product info

See merge request esp-components/esp-aliyun!54
  • Loading branch information
ustccw committed Jan 8, 2019
2 parents 6a5dcca + c4fd5a1 commit 8e09f0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions platform/os/espressif/HAL_OS_esp.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,14 @@ int HAL_GetPartnerID(char* pid_str)
int HAL_GetModuleID(char* mid_str)
{
memset(mid_str, 0x0, MID_STRLEN_MAX);
strcpy(mid_str, "wroom-32");
strcpy(mid_str, "wroom");
return strlen(mid_str);
}

char *HAL_GetChipID(_OU_ char* cid_str)
{
memset(cid_str, 0x0, HAL_CID_LEN);
strncpy(cid_str, "esp32", HAL_CID_LEN);
strncpy(cid_str, "esp", HAL_CID_LEN);
cid_str[HAL_CID_LEN - 1] = '\0';
return cid_str;
}
Expand Down

0 comments on commit 8e09f0a

Please sign in to comment.