From b7241f9cc1d57dab3a6d6e47477d381987da8aa3 Mon Sep 17 00:00:00 2001 From: csoft2k Date: Thu, 27 Jul 2017 21:06:48 +0200 Subject: [PATCH] Function comment fixed. --- src/escpos/escpos.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/escpos/escpos.py b/src/escpos/escpos.py index 3b063fe..097af45 100644 --- a/src/escpos/escpos.py +++ b/src/escpos/escpos.py @@ -756,8 +756,7 @@ class Escpos(object): def query_status(self, mode): """ Queries the printer for its status, and returns an array of integers containing it. - :param mode: Querying command to be sent to the printer. - Available commands: + :param mode: Integer that sets the status mode queried to the printer. RT_STATUS_ONLINE: Printer status. RT_STATUS_PAPER: Paper sensor. :rtype: array(integer)""" @@ -770,7 +769,7 @@ class Escpos(object): """ Queries the printer its online status. When online, returns True; False otherwise. :rtype: bool: True if online, False if offline.""" - status = self.query_status(RT_STATUS_ONLINE) + status = self.query_status(RT_STATUS_ONLINE); if len(status) == 0: return False; return not (status & RT_MASK_ONLINE)