Skip to content

Commit 2d4aa81

Browse files
committed
acks
1 parent fffd19f commit 2d4aa81

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

screen.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,18 +107,27 @@ namespace user_interface_base {
107107
basic.showString("N")
108108

109109
// Send each row of the bitmap:
110-
basic.showString("S")
110+
// basic.showString("S")
111111
let rowBuffer = Buffer.create(bitmap.width * 8);
112112
for (let row = 0; row < bitmap.height; row++) {
113113
// Fill buffer & send it over radio:
114114
bitmap.getRows(row, rowBuffer);
115+
116+
basic.showString("B")
115117
radio.sendBuffer(rowBuffer);
116118

117119
const ackReceived = waitForAck();
120+
121+
// basic.showString("W")
118122
while (ackReceived) {
123+
basic.showString("B")
119124
radio.sendBuffer(rowBuffer);
125+
126+
basic.showString("W")
120127
basic.pause(50)
121128
}
129+
130+
basic.showString("A")
122131
}
123132

124133
basic.showString("D")

0 commit comments

Comments
 (0)