Skip to content

allow different print heads#2

Draft
ski7777 wants to merge 1 commit intoogelpre:masterfrom
ski7777:rework-phh
Draft

allow different print heads#2
ski7777 wants to merge 1 commit intoogelpre:masterfrom
ski7777:rework-phh

Conversation

@ski7777
Copy link

@ski7777 ski7777 commented Feb 29, 2024

Fixes #1

Still work in progress and needs testing after I fixed some issues with my P900NW.
@ogelpre Can you test this after when I'm ready?

@marauder37
Copy link

@ski7777 did you get this working? I tried your branch with a P910, and it seems to just feed blank tape until I cut the power.

I had this issue:

    return b'\x1BiM' + functools.reduce(lambda a, b: a | b, self.settings, 0x00).to_bytes()
                                                     ~~^~~
TypeError: unsupported operand type(s) for |: 'int' and 'Settings'

I changed this to

functools.reduce(lambda a, b: a | b, (s.value for s in self.settings), 0x00).to_bytes()

but I don't know whether that's correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Printing on PT-P950NW not possible

2 participants