You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently resend() is designed to be used like send() without uploading a payload. I think it would help user code that is async-oriented if rewrite() is abstracted from resend() (similar to how write() is a helper to send()).
Pseudo code
defresend() ->bool:
ifnotrewrite():
returnFalsewhilenotself._status&0x70:
self.update()
returnself.irq_dsdefrewrite() ->bool:
ifself.fifo(about_tx=true, check_empty=True):
returnFalse# return early if nothing in TX FIFOself._ce_pin=Falseself.clear_status_flags()
# self._reg_write_bytes(0xE3, b"") # dont't issue REUSE_TX_PL commandself._ce_pin.value=True# CircuitPython is slow enough to skip the mandatory 10us delay on CE pin# time.sleep(0.00001)
Of course, there is more nuance in the current implementation for resend() where it can return a payload from the ACK packet (if that feature is enabled).
The text was updated successfully, but these errors were encountered:
Currently
resend()
is designed to be used likesend()
without uploading a payload. I think it would help user code that is async-oriented ifrewrite()
is abstracted fromresend()
(similar to howwrite()
is a helper tosend()
).Pseudo code
Of course, there is more nuance in the current implementation for
resend()
where it can return a payload from the ACK packet (if that feature is enabled).The text was updated successfully, but these errors were encountered: