Skip to content

Fix sleep delay for M4 - fix example for RPi #10

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

Merged
merged 2 commits into from
Aug 28, 2018
Merged

Fix sleep delay for M4 - fix example for RPi #10

merged 2 commits into from
Aug 28, 2018

Conversation

jerryneedell
Copy link
Contributor

The delay after entering "sleep" mode needed to be moved to immediately after the self.sleep() call. On the M4, the board was not entering sleep mode before the next configuration instructions were being received.
Removed the unnecessary commented out code.

In rfm9x_simpletest.py -- converted the test message string to a bytesring - this is needed for the Raspberry Pi Python to execute. It also works for CircuitPython.

Tested on:
Feather M4 Express
Feather M0 Express
Raspberry Pi 3B+

@jerryneedell
Copy link
Contributor Author

This PR should fix #8

@ladyada ladyada merged commit f9822d0 into adafruit:master Aug 28, 2018
tannewt pushed a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Aug 29, 2018
Updating https://github.com/adafruit/Adafruit_CircuitPython_RFM9x to 1.1.1 from 1.1.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_RFM9x#10 from jerryneedell/jerryn_sleep
  > ignore the board module imports in .pylintrc
@jerryneedell jerryneedell deleted the jerryn_sleep branch October 7, 2018 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants