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
3923e608
Commit
3923e608
authored
4 years ago
by
Eric Duminil
Browse files
Options
Download
Email Patches
Plain Diff
Pass by reference
parent
ee56f086
master
dev/calibnightmode
dev/configbreathing
dev/debugcalib
dev/fixstartup
dev/sensorstates
develop
refactor/calibration
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lorawan.cpp
+1
-1
lorawan.cpp
with
1 addition
and
1 deletion
+1
-1
lorawan.cpp
+
1
-
1
View file @
3923e608
...
@@ -183,7 +183,7 @@ namespace lorawan {
...
@@ -183,7 +183,7 @@ namespace lorawan {
}
}
}
}
void
preparePayloadIfTimeHasCome
(
int16_t
co2
,
float
temperature
,
float
humidity
)
{
void
preparePayloadIfTimeHasCome
(
const
int16_t
&
co2
,
const
float
&
temperature
,
const
float
&
humidity
)
{
static
unsigned
long
last_sent_at
=
0
;
static
unsigned
long
last_sent_at
=
0
;
unsigned
long
now
=
seconds
();
unsigned
long
now
=
seconds
();
if
(
now
-
last_sent_at
>
config
::
lorawan_sending_interval
)
{
if
(
now
-
last_sent_at
>
config
::
lorawan_sending_interval
)
{
...
...
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