Skip to content
GitLab
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
Dec 26, 2020
by
Eric Duminil
Browse files
Pass by reference
parent
ee56f086
Changes
1
Hide whitespace changes
Inline
Side-by-side
lorawan.cpp
View file @
3923e608
...
...
@@ -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
;
unsigned
long
now
=
seconds
();
if
(
now
-
last_sent_at
>
config
::
lorawan_sending_interval
)
{
...
...
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