Skip to content

Commit e8a2f48

Browse files
committed
screen.ts getBuffer debugging else branch by writing to rowBuffer
1 parent a1ae30a commit e8a2f48

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

screen.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,12 @@ namespace user_interface_base {
150150

151151
// Simply get the row, slice off the required bytes:
152152
else {
153-
basic.showNumber(chunkIndex)
153+
// basic.showNumber(chunkIndex)
154154
const rowBuf = Buffer.create(bitmap.width);
155+
for (let i = 0; i < rowBuf.length; i++) {
156+
rowBuf[i] = 3;
157+
}
158+
155159
bitmap.getRows(startingRow, rowBuf);
156160
const res = rowBuf.slice(startIndex % width, chunkSize);
157161
if (res.length > 16)

0 commit comments

Comments
 (0)