Skip to content

Commit 7e1c91f

Browse files
authored
Merge pull request hathach#2863 from HiFiPhile/warning
Fix _rhport_role warning
2 parents 6f11f99 + 0af07f1 commit 7e1c91f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tusb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
#include "host/usbh_pvt.h"
4040
#endif
4141

42-
tusb_role_t _tusb_rhport_role[TUP_USBIP_CONTROLLER_NUM] = { 0 };
42+
tusb_role_t _tusb_rhport_role[TUP_USBIP_CONTROLLER_NUM] = { TUSB_ROLE_INVALID };
4343

4444
//--------------------------------------------------------------------
4545
// Weak/Default API, can be overwritten by Application

0 commit comments

Comments
 (0)