-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove useless ce()
call
#987
Conversation
Memory usage change @ e5ed6c0
Click for full report table
Click for full report CSV
|
Testing this would require running the examples/scanner/scanner.ino in Arduino IDE (using a radio that returns true for
However, I haven't focused on maintaining those old examples... I think its worth noting that the CirPy lib has been using this patch for years, and I haven't had any problems reported there. |
Oh, the streamingData examples use The carrier wave is properly transmitting from examples/scanner/scanner.ino with a radio that returns true for |
resolves #986
4b57a33
to
e5ed6c0
Compare
Actually, the CirPy lib just clears the status flags and relies on the fact that the radio will attempt to transmit anything in the TX FIFO once the CE pin is cycled. The CirPy lib does not actually use the if self.fifo(about_tx=True, check_empty=True):
return False # return early if nothing in TX FIFO
self._ce_pin.value = False
self.clear_status_flags() # clear all IRQ flags
# self._reg_write(0xE3) # skips REUSE_TX_PL command because TX FIFO is occupied
self._ce_pin.value = True I think I did this to allow the radio to move onto the next payload when successful. Otherwise, the radio is stuck re-transmitting the same payload in the top level of TX FIFO until any of the following conditions:
According to datasheet (end of section 7.5.2):
|
I have confirmed that this still works. I used the python wrapper to manually create a failed transmission (using I should still point out that
Any objections to merging this? |
Nope, I haven't had a chance to test this, but looks like you have! Looks good! |
resolves #986