Return the device class and model#1
Return the device class and model#1tomtastic wants to merge 5 commits intomarkrages:masterfrom tomtastic:master
Conversation
|
Hi, I was looking through some of the files from the software DVD of my recently purchased HM310T, and I noticed some references to ClassID, which is always a two character ASCII alphanumeric identifier. Mine is also This corresponds with the data in Of course there are some other attributes for these The same file also has some |
|
@tomtastic I don't know if you've seen my recent posts elsewhere (EEVblog thread and sigrok etommens PR), but I made some extensive changes to hm305.py, starting from your branch, and I figured I'd share in case you are interested. First, I ended up displaying the device class as an ascii string, as suggested by my last comment. Cheers |
Using commands 0x03 and 0x04, return the class and model of the device.
This is useful for adding support for these devices to the Sigrok driver (sigrokproject/libsigrok#100)
eg.
Also applied some minor code formatting using Black.