Skip to content

Commit b89864c

Browse files
committed
screen.ts getBuffer debugging else branch by writing to rowBuffer 4
1 parent 625e0e3 commit b89864c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

screen.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,16 +150,15 @@ namespace user_interface_base {
150150

151151
// Simply get the row, slice off the required bytes:
152152
else {
153-
// basic.showNumber(chunkIndex)
154153
const rowBuf = Buffer.create(bitmap.width);
155154

156155
// bitmap.getRows(startingRow, rowBuf);
156+
// basic.showNumber(rowBuf.length)
157157
for (let i = 0; i < rowBuf.length; i++) {
158-
rowBuf[i] = 3;
158+
rowBuf[i] = 3;
159159
}
160+
160161
const res = rowBuf.slice(startIndex % width, chunkSize);
161-
if (res.length > 16)
162-
basic.showString("B")
163162
return res
164163
}
165164
}

0 commit comments

Comments
 (0)