Comments (3)
Hi, thanks for the report; unclaim()
should be a no-op if handle is not set, but it looks like is_claimed()
returns the wrong thing:
[[nodiscard]] auto is_claimed() const noexcept -> bool
{
return device_handle_ == nullptr;
}
Should be != nullptr
, will fix.
I planned to use this library for a project which I had to abandon, so there are definitely bugs in basic features like this; I might get to use it for another project in not-so-distant future though :) feel free to report other problems / submit PRs if you find other issues.
from usb-asio.
Should be
!= nullptr
, will fix.
Oh, I totally missed that. Thanks for quick fix!
from usb-asio.
I believe, this is not fully fixed yet, as basic_usb_interface::device_handle_
is missing initialization and thus is_claimed()
may incorrectly return because device_handle_
holds some garbage.
from usb-asio.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from usb-asio.