From b35f5628be0dcf8faef962854978a9a77e13192a Mon Sep 17 00:00:00 2001 From: driver1998 Date: Thu, 27 Feb 2020 01:43:25 +0800 Subject: [PATCH] prt_escp: fix return value of read_ctrl --- src/printer/prt_escp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/printer/prt_escp.c b/src/printer/prt_escp.c index c74449ba6..2aa922b87 100644 --- a/src/printer/prt_escp.c +++ b/src/printer/prt_escp.c @@ -2006,7 +2006,7 @@ read_ctrl(void *priv) { escp_t *dev = (escp_t *)priv; - return 0xe0 | dev->autofeed ? 0x02 : 0x00 | (dev->ctrl & 0xfd); + return 0xe0 | (dev->autofeed ? 0x02 : 0x00) | (dev->ctrl & 0xfd); }