Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
dcdb
dcdb
Commits
8d1cbabf
Commit
8d1cbabf
authored
Feb 27, 2019
by
Alessio Netti
Browse files
Compiler warning fixes
parent
60ae6562
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/MQTTPusher.cpp
View file @
8d1cbabf
...
@@ -116,7 +116,7 @@ void MQTTPusher::push() {
...
@@ -116,7 +116,7 @@ void MQTTPusher::push() {
for
(
const
auto
&
g
:
p
.
configurator
->
getSensorGroups
())
{
for
(
const
auto
&
g
:
p
.
configurator
->
getSensorGroups
())
{
for
(
const
auto
&
s
:
g
->
getSensors
())
{
for
(
const
auto
&
s
:
g
->
getSensors
())
{
if
(
s
->
getSizeOfReadingQueue
()
>=
g
->
getMinValues
())
{
if
(
s
->
getSizeOfReadingQueue
()
>=
g
->
getMinValues
())
{
if
(
_msgCap
==
DISABLED
||
totalCount
<
_maxNumberOfMessages
)
{
if
(
_msgCap
==
DISABLED
||
totalCount
<
(
unsigned
)
_maxNumberOfMessages
)
{
if
(
sendReadings
(
*
s
,
reads
,
totalCount
)
>
0
)
{
if
(
sendReadings
(
*
s
,
reads
,
totalCount
)
>
0
)
{
break
;
break
;
}
}
...
@@ -136,7 +136,7 @@ void MQTTPusher::push() {
...
@@ -136,7 +136,7 @@ void MQTTPusher::push() {
for
(
const
auto
&
u
:
a
->
getUnits
())
{
for
(
const
auto
&
u
:
a
->
getUnits
())
{
for
(
const
auto
&
s
:
u
->
getBaseOutputs
())
{
for
(
const
auto
&
s
:
u
->
getBaseOutputs
())
{
if
(
s
->
getSizeOfReadingQueue
()
>=
a
->
getMinValues
())
{
if
(
s
->
getSizeOfReadingQueue
()
>=
a
->
getMinValues
())
{
if
(
_msgCap
==
DISABLED
||
totalCount
<
_maxNumberOfMessages
)
{
if
(
_msgCap
==
DISABLED
||
totalCount
<
(
unsigned
)
_maxNumberOfMessages
)
{
if
(
sendReadings
(
*
s
,
reads
,
totalCount
)
>
0
)
{
if
(
sendReadings
(
*
s
,
reads
,
totalCount
)
>
0
)
{
break
;
break
;
}
}
...
...
Write
Preview
Supports
Markdown
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