Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Gebhardt, Albrecht
frewe-rpi
Commits
85213e33
Commit
85213e33
authored
Nov 21, 2018
by
Gebhardt, Albrecht
Browse files
rain trouble
parent
64acf98c
Changes
1
Hide whitespace changes
Inline
Side-by-side
frewe-client.c
View file @
85213e33
...
...
@@ -1552,7 +1552,7 @@ int ws_parse(uint8_t *buffer, uint8_t *buffer60, uint8_t *buffer0h, time_t curti
if
(
w
.
rainhour
<
0
)
{
logger
(
LOG_ERROR
,
"ws_parse"
,
"Rainhour is negative, will set it to 0, rain=%f, lastrain=%f"
,
w
.
rain
,
lastrain
);
w
.
rainhour
=
0
;
w
.
ok
=
0
;
//
w.ok=0;
}
if
(
w
.
rainhour
>
150
)
{
logger
(
LOG_ERROR
,
"ws_parse"
,
"Rainhour is out of range, rain=%f, lastrain=%f"
,
w
.
rain
,
lastrain
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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