Skip to content

Commit

Permalink
Merge pull request #47 from felipeguimaraes2/fix-offlinecausestatus
Browse files Browse the repository at this point in the history
fix: OfflineCauseStatus JSON always shows errors
  • Loading branch information
dohooo authored Dec 23, 2022
2 parents b828b0c + 8f4c52f commit c96a338
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/honest-monkeys-think.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@node-escpos/core": minor
---

OfflineCauseStatus JSON always shows errors
2 changes: 1 addition & 1 deletion packages/core/src/statuses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c96a338

Please sign in to comment.