chegewara / EspTinyUSB

ESP32S2 native USB library. Implemented few common classes, like MIDI, CDC, HID or DFU (update).
MIT License
475 stars 70 forks source link

[question] refactor functions to return bool when possible #8

Closed chegewara closed 3 years ago

chegewara commented 3 years ago

I am thinking about refactoring some functions to return bool value to signal if function succeeded or not, for example hid functions.

Any thoughts?

blackketter commented 3 years ago

That seems reasonable, assuming there's a way to determine why it failed. What about returning an error code?

chegewara commented 3 years ago

There is no way to return error code, tinyusb returns bool value.

chegewara commented 3 years ago

Done.