diff options
| -rw-r--r-- | views/viewhelpers.c | 2 | ||||
| -rw-r--r-- | views/viewhelpers.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/views/viewhelpers.c b/views/viewhelpers.c index e10798f..c9423d4 100644 --- a/views/viewhelpers.c +++ b/views/viewhelpers.c @@ -6,6 +6,7 @@ #include "viewhelpers.h" cViewHelpers::cViewHelpers(void) { + numDevices = 0; devicesInit = false; lastSecond = -1; lastMinute = -1; @@ -36,7 +37,6 @@ bool cViewHelpers::SetDevices(bool initial, map<string,int> *intTokens, vector<m #ifdef DOPROFILE cStopWatch watch("SetDevices"); #endif - int numDevices = cDevice::NumDevices(); if (!initial) { //check if drawing is necessary bool changed = false; diff --git a/views/viewhelpers.h b/views/viewhelpers.h index 8e49554..53209b4 100644 --- a/views/viewhelpers.h +++ b/views/viewhelpers.h @@ -3,6 +3,7 @@ class cViewHelpers { private: + int numDevices; bool devicesInit; int* lastSignalStrength; int* lastSignalQuality; |
