Repository navigation
Conversation
A reset during an RTC read left SDA held low, and the RTC probe then hung every boot. Up to nine clock pulses release the bus.
It resets the board when the main loop stops, as Meshtastic does on the M6. It pauses while the CPU sleeps.
…anual The red LED stays on for 10 s at boot, stays on with USB or while charging, flashes slowly at 3.5 V or less and gives a short flash every 3 s on battery. The blue LED flashes while sending and after each received packet. Holding the button 4 s and releasing it powers the board off; the button or the charger wakes it.
The Elecrow manual asks for a long press to power on, with the red LED lighting after 3 s. A shorter press now puts the board back to sleep; a wake-up by the charger still boots at once.
A press too short to power on now goes back to sleep through the normal power-off path, so the radio sleeps again. The mark in GPREGRET2 is now SHUTDOWN_REASON_USER, and a release must last 20 ms.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The LEDs and the button now follow the Elecrow manual:
The charger starting also wakes the board, so a solar node wakes when charging resumes. As in Meshtastic, presses in the first 30 s after boot are ignored, and GPREGRET 0x6D stops the bootloader from entering DFU on the wake-up press.
Not in the manual: a short red flash every 3 s on battery, as a sign of life.
Depends on #3927, whose two commits are included here.
Tested on an M6 repeater, with a native test for the LED patterns.
Thanks