-
Notifications
You must be signed in to change notification settings - Fork 914
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from meshtastic/master
Update from upstream
- Loading branch information
Showing
200 changed files
with
9,389 additions
and
3,165 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
name: Bug report or feature proposal | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
Please - if you just have a question (i.e. not a bug report or a feature proposal), post in our [forum](https://meshtastic.discourse.group/) instead. | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Device info:** | ||
- Device model: [e.g. TBEAM] | ||
- Software Version [e.g. 0.7.8] | ||
|
||
**Smartphone information (if relevant):** | ||
- Device: [e.g. iPhone6] | ||
- OS: [e.g. iOS8.1] | ||
- App Version [e.g. 0.7.2] | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
## Thank you for sending in a pull request, here's some tips to get started! | ||
|
||
(Please delete all these tips and replace with your text) | ||
|
||
- Before starting on some new big chunk of code, it it is optional but highly recommended to open an issue first | ||
to say "hey, I think this idea X should be implemented and I'm starting work on it. My general plan is Y, any feedback | ||
is appreciated." This will allow other devs to potentially save you time by not accidentially duplicating work etc... | ||
- Please do not check in files that don't have real changes | ||
- Please do not reformat lines that you didn't have to change the code on | ||
- We recommend using the [Visual Studio Code](https://platformio.org/install/ide?install=vscode) editor, | ||
because automatically follows our indentation rules and it's auto reformatting will not cause spurious changes to lines. | ||
- If your PR fixes a bug, mention "fixes #bugnum" somewhere in your pull request description. | ||
- If your other co-developers have comments on your PR please tweak as needed. |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"type": "PlatformIO", | ||
"task": "Build", | ||
"problemMatcher": [ | ||
"$platformio" | ||
], | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
}, | ||
"label": "PlatformIO: Build" | ||
} | ||
] | ||
} |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,45 @@ | ||
#!/bin/bash | ||
#!/bin/sh | ||
|
||
set -e | ||
# Usage info | ||
show_help() { | ||
cat << EOF | ||
Usage: ${0##*/} [-h] [-p ESPTOOL_PORT] [-f FILENAME] | ||
Flash image file to device, but first erasing and writing system information" | ||
FILENAME=$1 | ||
-h Display this help and exit | ||
-p ESPTOOL_PORT Set the environment variable for ESPTOOL_PORT. If not set, ESPTOOL iterates all ports (Dangerrous). | ||
-f FILENAME The .bin file to flash. Custom to your device type and region. | ||
EOF | ||
} | ||
|
||
echo "Trying to flash $FILENAME, but first erasing and writing system information" | ||
esptool.py --baud 921600 erase_flash | ||
esptool.py --baud 921600 write_flash 0x1000 system-info.bin | ||
esptool.py --baud 921600 write_flash 0x10000 $FILENAME | ||
|
||
while getopts ":h:p:f:" opt; do | ||
case "${opt}" in | ||
h) | ||
show_help | ||
exit 0 | ||
;; | ||
p) export ESPTOOL_PORT=${OPTARG} | ||
;; | ||
f) FILENAME=${OPTARG} | ||
;; | ||
*) | ||
echo "Invalid flag." | ||
show_help >&2 | ||
exit 1 | ||
;; | ||
esac | ||
done | ||
shift "$((OPTIND-1))" | ||
|
||
if [ -f "${FILENAME}" ]; then | ||
echo "Trying to flash ${FILENAME}, but first erasing and writing system information" | ||
esptool.py --baud 921600 erase_flash | ||
esptool.py --baud 921600 write_flash 0x1000 system-info.bin | ||
esptool.py --baud 921600 write_flash 0x10000 ${FILENAME} | ||
else | ||
echo "Invalid file: ${FILENAME}" | ||
show_help | ||
fi | ||
|
||
exit 0 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,43 @@ | ||
#!/bin/bash | ||
#!/bin/sh | ||
|
||
set -e | ||
# Usage info | ||
show_help() { | ||
cat << EOF | ||
Usage: ${0##*/} [-h] [-p ESPTOOL_PORT] -f FILENAME | ||
Flash image file to device, leave existing system intact." | ||
FILENAME=$1 | ||
-h Display this help and exit | ||
-p ESPTOOL_PORT Set the environment variable for ESPTOOL_PORT. If not set, ESPTOOL iterates all ports (Dangerrous). | ||
-f FILENAME The .bin file to flash. Custom to your device type and region. | ||
EOF | ||
} | ||
|
||
echo "Trying to update $FILENAME" | ||
esptool.py --baud 921600 write_flash 0x10000 $FILENAME | ||
|
||
while getopts ":h:p:f:" opt; do | ||
case "${opt}" in | ||
h) | ||
show_help | ||
exit 0 | ||
;; | ||
p) export ESPTOOL_PORT=${OPTARG} | ||
;; | ||
f) FILENAME=${OPTARG} | ||
;; | ||
*) | ||
echo "Invalid flag." | ||
show_help >&2 | ||
exit 1 | ||
;; | ||
esac | ||
done | ||
shift "$((OPTIND-1))" | ||
|
||
if [ -f "${FILENAME}" ]; then | ||
echo "Trying to flash update ${FILENAME}." | ||
esptool.py --baud 921600 write_flash 0x10000 ${FILENAME} | ||
else | ||
echo "Invalid file: ${FILENAME}" | ||
show_help | ||
fi | ||
|
||
exit 0 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
arm-none-eabi-readelf -s -e .pio/build/nrf52dk/firmware.elf | head -80 | ||
|
||
nm -CSr --size-sort .pio/build/nrf52dk/firmware.elf | grep '^200' |
File renamed without changes.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
|
||
JLinkGDBServerCLExe -if SWD -select USB -port 2331 -device NRF52832_XXAA |
Oops, something went wrong.