Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Käppler
ampel-firmware
Commits
21fd5cd4
Commit
21fd5cd4
authored
4 years ago
by
Eric Duminil
Browse files
Options
Download
Email Patches
Plain Diff
Forgotten LedEffects -> led_effects
parent
2c338489
master
dev/calibnightmode
dev/configbreathing
dev/debugcalib
dev/fixstartup
dev/sensorstates
develop
refactor/calibration
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ampel-firmware/lorawan.cpp
+4
-4
ampel-firmware/lorawan.cpp
with
4 additions
and
4 deletions
+4
-4
ampel-firmware/lorawan.cpp
+
4
-
4
View file @
21fd5cd4
...
@@ -74,7 +74,7 @@ namespace lorawan {
...
@@ -74,7 +74,7 @@ namespace lorawan {
case
EV_JOINED
:
case
EV_JOINED
:
waiting_for_confirmation
=
false
;
waiting_for_confirmation
=
false
;
connected
=
true
;
connected
=
true
;
L
ed
E
ffects
::
onBoardLEDOff
();
l
ed
_e
ffects
::
onBoardLEDOff
();
Serial
.
println
(
F
(
"EV_JOINED"
));
Serial
.
println
(
F
(
"EV_JOINED"
));
{
{
u4_t
netid
=
0
;
u4_t
netid
=
0
;
...
@@ -121,12 +121,12 @@ namespace lorawan {
...
@@ -121,12 +121,12 @@ namespace lorawan {
break
;
break
;
case
EV_TXCANCELED
:
case
EV_TXCANCELED
:
waiting_for_confirmation
=
false
;
waiting_for_confirmation
=
false
;
L
ed
E
ffects
::
onBoardLEDOff
();
l
ed
_e
ffects
::
onBoardLEDOff
();
Serial
.
println
(
F
(
"EV_TXCANCELED"
));
Serial
.
println
(
F
(
"EV_TXCANCELED"
));
break
;
break
;
case
EV_JOIN_TXCOMPLETE
:
case
EV_JOIN_TXCOMPLETE
:
waiting_for_confirmation
=
false
;
waiting_for_confirmation
=
false
;
L
ed
E
ffects
::
onBoardLEDOff
();
l
ed
_e
ffects
::
onBoardLEDOff
();
Serial
.
println
(
F
(
"EV_JOIN_TXCOMPLETE: no JoinAccept."
));
Serial
.
println
(
F
(
"EV_JOIN_TXCOMPLETE: no JoinAccept."
));
Serial
.
println
(
F
(
"Other services may resume."
));
Serial
.
println
(
F
(
"Other services may resume."
));
break
;
break
;
...
@@ -136,7 +136,7 @@ namespace lorawan {
...
@@ -136,7 +136,7 @@ namespace lorawan {
break
;
break
;
}
}
if
(
waiting_for_confirmation
)
{
if
(
waiting_for_confirmation
)
{
L
ed
E
ffects
::
onBoardLEDOn
();
l
ed
_e
ffects
::
onBoardLEDOn
();
Serial
.
println
(
F
(
"LoRa - waiting for OTAA confirmation. Freezing every other service!"
));
Serial
.
println
(
F
(
"LoRa - waiting for OTAA confirmation. Freezing every other service!"
));
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets