Skip to content

Commit 92801d0

Browse files
committed
acks
1 parent 715108d commit 92801d0

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

screen.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,19 +93,20 @@ namespace user_interface_base {
9393
basic.pause(25)
9494
}
9595

96-
radio.onReceivedValue(_ => { }) // reset radio
96+
// radio.onReceivedValue(_ => { }) // reset radio
9797
return ackReceived;
9898
};
9999

100100
// bitmap information:
101101
radio.sendString(name + "," + bitmap.height)
102102
basic.pause(25)
103103

104-
const ackReceived = waitForAck();
105-
if (ackReceived)
106-
basic.showString("R")
107-
else
108-
basic.showString("N")
104+
basic.showString("W")
105+
while (waitForAck()) {
106+
radio.sendString(name + "," + bitmap.height);
107+
basic.pause(25)
108+
}
109+
basic.showString("R")
109110

110111
// Send each row of the bitmap:
111112
// basic.showString("S")

0 commit comments

Comments
 (0)