Merge pull request #560 from hathach/fix-559
have tusb_init() return true instead of TUSB_ERROR_NONE
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
@@ -54,6 +54,7 @@
 | 
			
		||||
    ENTRY(TUSB_ERROR_FAILED                          )\
 | 
			
		||||
 | 
			
		||||
/// \brief Error Code returned
 | 
			
		||||
/// TODO obsolete and to be remove
 | 
			
		||||
typedef enum
 | 
			
		||||
{
 | 
			
		||||
  ERROR_TABLE(ERROR_ENUM)
 | 
			
		||||
 
 | 
			
		||||
@@ -52,7 +52,7 @@ bool tusb_init(void)
 | 
			
		||||
 | 
			
		||||
  _initialized = true;
 | 
			
		||||
 | 
			
		||||
  return TUSB_ERROR_NONE;
 | 
			
		||||
  return true;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
bool tusb_inited(void)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user