Skip to content

Commit e392f05

Browse files
committed
adding timeouts
1 parent 0a675d0 commit e392f05

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

screen.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ namespace user_interface_base {
8989

9090
let timePassed = 0;
9191
while (!received) {
92-
if (timePassed % 99 == 0)
92+
if (timePassed % 33 == 0)
9393
radio.sendBuffer(buf);
9494
timePassed += 3;
9595
basic.pause(3)
@@ -127,7 +127,6 @@ namespace user_interface_base {
127127
const rowBuf = Buffer.create(bitmap.width);
128128
bitmap.getRows(startingRow, rowBuf);
129129
const res = rowBuf.slice(startIndex % width, chunkSize);
130-
// basic.showNumber(res.length)
131130
return res
132131
}
133132
}
@@ -144,7 +143,6 @@ namespace user_interface_base {
144143
// Send a chunk of the bitmap and wait for ACK, RX will rebuild the bitmap:
145144
for (let j = 0; j < numberOfChunks; j++) {
146145
const rowBuffer = this.getBuffer(bitmap, j, maxPacketBufferSize);
147-
// radio.sendBuffer(rowBuffer);
148146
this.tryToSend(rowBuffer);
149147
}
150148
this.bitmapCache.push(bitmap);

0 commit comments

Comments
 (0)