Skip to content

Commit e1574a5

Browse files
committed
screen.ts: tryToSend debugging
1 parent 1261222 commit e1574a5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

screen.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,20 @@ namespace user_interface_base {
7373
public static tryToSend(data: Buffer | String) {
7474
let received = false;
7575
radio.onReceivedString((s: String) => {
76+
basic.showString("R")
7677
if (s == "ACK")
7778
received = true;
7879
})
7980

81+
let i = 0;
8082
let timePassed = 0;
8183
while (!received) {
8284
if (timePassed % 30 == 0) {
8385
if (typeof data == "string") {
8486
radio.sendString(data);
8587
} else {
88+
basic.showNumber(i)
89+
i++;
8690
radio.sendBuffer(data as Buffer);
8791
}
8892
}

0 commit comments

Comments
 (0)