Skip to content

Commit c96a338

Browse files
authored
Merge pull request #47 from felipeguimaraes2/fix-offlinecausestatus
fix: OfflineCauseStatus JSON always shows errors
2 parents b828b0c + 8f4c52f commit c96a338

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/honest-monkeys-think.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@node-escpos/core": minor
3+
---
4+
5+
OfflineCauseStatus JSON always shows errors

packages/core/src/statuses.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export class OfflineCauseStatus extends DeviceStatus {
133133
const result = super.toBaseJSON("OfflineCauseStatus");
134134
for (let i = 0; i < 8; i++) {
135135
let label = "";
136-
let status = Status.Error;
136+
let status = Status.Ok;
137137
switch (i) {
138138
case 2:
139139
if (this.bitsAsc[i] === 1) {

0 commit comments

Comments
 (0)