Partly fixes #1861

This commit is contained in:
bsongis
2014-11-22 19:23:42 +01:00
parent ed6811ffce
commit 978e9a260c
6 changed files with 31 additions and 17 deletions
+1 -1
View File
@@ -970,7 +970,7 @@ class SensorData {
unsigned int gps;
unsigned int alt;
bool isAvailable() const { return type==TYPE_CALCULATED || id!=0 || instance!=0; }
bool isAvailable() const { return strlen(label) > 0; }
void updateUnit();
QString unitString() const;
void clear() { memset(this, 0, sizeof(SensorData)); }