Closed vulpes2 closed 3 months ago
@matmair not sure if you had notifications enabled for this repo or not, just want to make sure you're aware of this.
@vulpes2 I was a bit occupied with inventree/inventree stuff. Will review tomorrow or the weekend
Issues
2 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
Pushed some minor fixes that aren't worth opening a separate pull request for.
linux_kernel
backend, parse the IEEE1284 ID from/sys/class/usbmisc/lpX/device/ieee1284_id
and filter for Brother printers with thePT-CBT
command set. Incompatible printers will generate a message but won't be returned by the function. Every single USB P-Touch printer should be able to pass this check. While it's possible to do this with libusb to make sure it doesn't pick up Brother printers that aren't P-Touch devices, it's pretty complicated, so I didn't do it with libusb yet.0x04f9:0x0330
is a Brother printer but it's not P-Touch. It's used byusbfs
that libusb cannot unbind due to the lack of permissions, I'm only using it to demonstrate the improved error handling.Fixes https://github.com/matmair/brother_ql-inventree/issues/64