Skip to content

Commit 59521b7

Browse files
authored
Merge pull request #33 from VonSzarvas/master
Updated to support BadgeWX product (#20300).
2 parents 5c340ae + 64e7655 commit 59521b7

File tree

10 files changed

+370
-89
lines changed

10 files changed

+370
-89
lines changed

Makefile

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
# Version number notes!
2+
# Before building release version, bump the version number thus:
3+
#
4+
# 1. Tag the master with: git tag -a v1.1 then enter an annotation message (it's like a commit message)
5+
# 2. The above snippet used v1.1 as example..... change that v number to whatever you need!
6+
# 3. Then try: git describe to see what version is displayed
7+
# 4. Then run make in usual way
8+
9+
110
#You can build this example in three ways:
211
# 'separate' - Separate espfs and binaries, no OTA upgrade
312
# 'combined' - Combined firmware blob, no OTA upgrade
@@ -17,7 +26,10 @@ OUTPUT_TYPE=ota
1726
# commit is the number of commits since the last tag
1827
# date is the date of the build
1928
# hash is a unique substring of the hash of the last commit
20-
GITDESC=$(shell git describe master)
29+
30+
# Ensure --long tag added: GITDESC=$(shell git describe --long master)
31+
32+
GITDESC=$(shell git describe --long master)
2133
GITDESC_WORDS=$(subst -, ,$(GITDESC))
2234
GIT_VERSION=$(word 1,$(GITDESC_WORDS))
2335
GIT_COMMIT=$(word 2,$(GITDESC_WORDS))
@@ -28,6 +40,7 @@ else
2840
GIT_COMMIT_HASH_SUFFIX=$(subst -, ,-$(GIT_COMMIT))-$(GIT_HASH)
2941
endif
3042
VERSION=$(GIT_VERSION) ($(shell date "+%Y-%m-%d %H:%M:%S")$(GIT_COMMIT_HASH_SUFFIX))
43+
#VERSION=1.1 ($(shell date "+%Y-%m-%d %H:%M:%S")$(GIT_COMMIT_HASH_SUFFIX))
3144
$(info VERSION $(VERSION))
3245

3346
#SPI flash size, in K

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,16 @@ Check out the submodules of Parallax-ESP:
3838
git submodule init
3939
git submodule update
4040

41-
Build the firmware (from the Parallax-ESP directory):
41+
Build the firmware (from the Parallax-ESP directory) for Parallax WX Module:
4242

4343
make
4444

45+
Build the firmware (from the Parallax-ESP directory) for Parallax BadgeWX Module:
46+
47+
make EXTRA_CFLAGS=-DAUTO_LOAD
48+
49+
# Discovery Protocol
50+
4551
Here is a description of the discovery protocol used by the WX module:
4652

4753
1) PropLoader broadcasts a UDP packet to port 32420. The packet contains a single 32 bit

0 commit comments

Comments
 (0)