Skip to content

Commit ec2de27

Browse files
committed
screen.ts getBuffer debugging more fix
1 parent 7ede938 commit ec2de27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

screen.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ namespace user_interface_base {
143143
const chunkBuf2 = rowBuf2.slice(0, chunkSize - overhead);
144144

145145
const res = chunkBuf1.concat(chunkBuf2);
146-
if (res > 16)
146+
if (res.length > 16)
147147
basic.showString("B")
148148
return res
149149
}
@@ -153,7 +153,7 @@ namespace user_interface_base {
153153
const rowBuf = Buffer.create(bitmap.width);
154154
bitmap.getRows(startingRow, rowBuf);
155155
const res = rowBuf.slice(startIndex % width, chunkSize);
156-
if (res > 16)
156+
if (res.length > 16)
157157
basic.showString("B")
158158
return res
159159
}

0 commit comments

Comments
 (0)