Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

hasPaper crashes #10

Open
duellsy opened this issue Dec 8, 2014 · 1 comment
Open

hasPaper crashes #10

duellsy opened this issue Dec 8, 2014 · 1 comment

Comments

@duellsy
Copy link

duellsy commented Dec 8, 2014

There's an error with the hasPaper call, we consistently get this when we call printer.hasPaper()

Traceback (most recent call last):
  File "vcprint.py", line 27, in <module>
    if(not printer.hasPaper()):
  File "/home/pi/Python-Thermal-Printer/Adafruit_Thermal.py", line 534, in hasPaper
    stat = ord(self.read(1)) & 0b00000100
TypeError: ord() expected a character, but string of length 0 found
@duellsy
Copy link
Author

duellsy commented Dec 8, 2014

I can't actually see where the read method is to be able to check anything

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant