hp-clean doesn't work for HP photosmart C1410
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HPLIP |
New
|
Undecided
|
Unassigned |
Bug Description
Hi,
we have the report https:/
The cause of the issue is that you use a string object length in __writeChannel() in base/device.py, but when you call write_channel() from hpmudext C extension, it works with a buffer size, which is different from a string length for string objects (I guess it contains encoding info...).
The fix is to define the object which goes to the device (in this case 'p' object in buildLIDILPacket in prnt/ldl.py when packet_type is PACKET_
The patch was tested by the user and it works at least for level 1 cleaning of the device (he doesn't need more).
Plus it contains the fix for better error message - generic 'Device I/O error' doesn't give to user/debugger much info about what really happened...
Would you mind adding the patch to the project? Please let me know if I should change something.
Thank you in advance and have a nice day!
Zdenek Dohnal
RHEL/Fedora/CentOS HPLIP maintainer