Skip to content

Commit cd63901

Browse files
CopilotRyota-Bando
authored andcommitted
Implement change: Default hub type from EVP1 to EVP2 in get_hub_type()
Co-authored-by: Ryota-Bando <206490475+Ryota-Bando@users.noreply.github.com>
1 parent 959f351 commit cd63901

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libevp-agent/evp_hub.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,12 @@ evp_hub_setup(const char *iot_platform)
113113
enum evp_hub_type
114114
get_hub_type(const char *iot_platform)
115115
{
116-
/* Assume EVP1 TB by default, even for invalid 'iot_platform' */
117-
enum evp_hub_type hub_type = EVP_HUB_TYPE_EVP1_TB;
116+
/* Assume EVP2 TB by default, even for invalid 'iot_platform' */
117+
enum evp_hub_type hub_type = EVP_HUB_TYPE_EVP2_TB;
118118

119119
if (iot_platform != NULL) {
120-
if (strcasecmp(iot_platform, HUB_TB_NAME) == 0) {
121-
hub_type = EVP_HUB_TYPE_EVP2_TB;
120+
if (strcasecmp(iot_platform, HUB_EVP1_NAME) == 0) {
121+
hub_type = EVP_HUB_TYPE_EVP1_TB;
122122
}
123123
}
124124

0 commit comments

Comments
 (0)