summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2020-11-23 13:12:51 +0700
committerhathach <[email protected]>2020-11-23 13:12:51 +0700
commit14138f105e6fa487fa0a0ed40db6f27e1c6039fb (patch)
treec79838a3c016522fd19d0caa29285b1dca1f27ca /src
parent49f09f55d063876fcd33d21bbe30a940ac5bcf68 (diff)
have tusb_init() return true instead of TUSB_ERROR_NONE
Diffstat (limited to 'src')
-rwxr-xr-xsrc/class/bth/bth_device.c2
-rw-r--r--src/common/tusb_error.h1
-rw-r--r--src/tusb.c2
3 files changed, 3 insertions, 2 deletions
diff --git a/src/class/bth/bth_device.c b/src/class/bth/bth_device.c
index f8215e7dd..481dc134e 100755
--- a/src/class/bth/bth_device.c
+++ b/src/class/bth/bth_device.c
@@ -249,7 +249,7 @@ bool btd_xfer_cb(uint8_t rhport, uint8_t ep_addr, xfer_result_t result, uint32_t
if (tud_bt_acl_data_sent_cb) tud_bt_acl_data_sent_cb((uint16_t)xferred_bytes);
}
- return TUSB_ERROR_NONE;
+ return true;
}
#endif
diff --git a/src/common/tusb_error.h b/src/common/tusb_error.h
index f600c4ae3..d7ad8c318 100644
--- a/src/common/tusb_error.h
+++ b/src/common/tusb_error.h
@@ -54,6 +54,7 @@
ENTRY(TUSB_ERROR_FAILED )\
/// \brief Error Code returned
+/// TODO obsolete and to be remove
typedef enum
{
ERROR_TABLE(ERROR_ENUM)
diff --git a/src/tusb.c b/src/tusb.c
index b4731f844..31452e897 100644
--- a/src/tusb.c
+++ b/src/tusb.c
@@ -52,7 +52,7 @@ bool tusb_init(void)
_initialized = true;
- return TUSB_ERROR_NONE;
+ return true;
}
bool tusb_inited(void)