I need some help
I need that this function return a boolean if while is executed or no.
Could you help me?
I need some help
I need that this function return a boolean if while is executed or no.
Could you help me?
Copyright © 2021 Jogjafile Inc.
Let us rewrite that APDU example from the API because it is clearly broken. It will generate a separate request to
receiveBytes
when it is not required.The
if
&break
statements in thewhile()
loop are a bit weird, but that's the only way that I could think of to have one place handling the data in the APDU buffer and one part wherereceiveBytes()
is called. This is becausesetIncomingAndReceive()
includes areceiveBytes()
within the call (ideas to create a normalwhile
loop welcome).