From 30b597337588614afee46b34a23fcc22d336652a Mon Sep 17 00:00:00 2001 From: Felipe Guimaraes Date: Fri, 23 Dec 2022 10:53:25 -0300 Subject: [PATCH 1/2] OfflineCauseStatus JSON always shows errors --- packages/core/src/statuses.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/statuses.ts b/packages/core/src/statuses.ts index c8d1abe9..5265ba27 100644 --- a/packages/core/src/statuses.ts +++ b/packages/core/src/statuses.ts @@ -133,7 +133,7 @@ export class OfflineCauseStatus extends DeviceStatus { const result = super.toBaseJSON("OfflineCauseStatus"); for (let i = 0; i < 8; i++) { let label = ""; - let status = Status.Error; + let status = Status.Ok; switch (i) { case 2: if (this.bitsAsc[i] === 1) { From 8f4c52f2842ce9ebd77060952e75d06114f5a189 Mon Sep 17 00:00:00 2001 From: Felipe Guimaraes Date: Fri, 23 Dec 2022 11:48:51 -0300 Subject: [PATCH 2/2] fix: OfflineCauseStatus JSON always shows errors --- .changeset/honest-monkeys-think.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/honest-monkeys-think.md diff --git a/.changeset/honest-monkeys-think.md b/.changeset/honest-monkeys-think.md new file mode 100644 index 00000000..559e314e --- /dev/null +++ b/.changeset/honest-monkeys-think.md @@ -0,0 +1,5 @@ +--- +"@node-escpos/core": minor +--- + +OfflineCauseStatus JSON always shows errors