Skip to content

Commit da9c1c3

Browse files
ppannutoalistair23
authored andcommitted
lora: defend corner case for radioConfig
1 parent 89b4d52 commit da9c1c3

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

examples/lora/sensor-lorawan/Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,12 @@ endif
2424
EXTERN_LIBS += $(TOCK_USERLAND_BASE_DIR)/RadioLib
2525

2626
include $(TOCK_USERLAND_BASE_DIR)/AppMakefile.mk
27+
28+
# Protect from the (unlikely) case where the app happens to have been
29+
# built from an unrelated `build all` event, but now the user is trying
30+
# to flash the app with an invalid configuration.
31+
flash: radioConfig.h
32+
33+
program: radioConfig.h
34+
35+
install: radioConfig.h

0 commit comments

Comments
 (0)