Fix compilation with one service interval (#13185)
This commit is contained in:
parent
567d03a269
commit
208ab8b366
1 changed files with 9 additions and 1 deletions
|
@ -94,7 +94,15 @@ void PrintCounter::initStats() {
|
|||
loaded = true;
|
||||
data = { 0, 0, 0, 0, 0.0
|
||||
#if HAS_SERVICE_INTERVALS
|
||||
, SERVICE_INTERVAL_SEC_1, SERVICE_INTERVAL_SEC_2, SERVICE_INTERVAL_SEC_3
|
||||
#if SERVICE_INTERVAL_1 > 0
|
||||
, SERVICE_INTERVAL_SEC_1
|
||||
#endif
|
||||
#if SERVICE_INTERVAL_2 > 0
|
||||
, SERVICE_INTERVAL_SEC_2
|
||||
#endif
|
||||
#if SERVICE_INTERVAL_3 > 0
|
||||
, SERVICE_INTERVAL_SEC_3
|
||||
#endif
|
||||
#endif
|
||||
};
|
||||
|
||||
|
|
Reference in a new issue