Skip to content

Commit fffd19f

Browse files
committed
acks
1 parent 69747c3 commit fffd19f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

screen.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,15 @@ namespace user_interface_base {
7979
// Returns true on succesful acknowledgement reception.
8080
// Returns false on timeout (250ms)
8181
const waitForAck = () => {
82-
basic.showString("W")
82+
// basic.showString("W")
8383

8484
let ackReceived = false;
8585
radio.onReceivedString(_ => {
8686
ackReceived = true;
8787
})
8888

8989
// timeout:
90-
for (let timeChunk = 0; timeChunk < 250; timeChunk += 25) {
90+
for (let timeChunk = 0; timeChunk < 500; timeChunk += 25) {
9191
if (ackReceived)
9292
break
9393
basic.pause(25)
@@ -117,6 +117,7 @@ namespace user_interface_base {
117117
const ackReceived = waitForAck();
118118
while (ackReceived) {
119119
radio.sendBuffer(rowBuffer);
120+
basic.pause(50)
120121
}
121122
}
122123

0 commit comments

Comments
 (0)