This commit is contained in:
bsongis
2015-07-23 18:34:32 +02:00
parent 62ae7ef2bd
commit 98b4d26676
2 changed files with 4 additions and 2 deletions
@@ -440,6 +440,9 @@ void menuModelSensor(uint8_t event)
case SENSOR_FIELD_LOGS: case SENSOR_FIELD_LOGS:
ON_OFF_MENU_ITEM(sensor->logs, SENSOR_2ND_COLUMN, y, STR_LOGS, attr, event); ON_OFF_MENU_ITEM(sensor->logs, SENSOR_2ND_COLUMN, y, STR_LOGS, attr, event);
if (attr && checkIncDec_Ret) {
closeLogs();
}
break; break;
} }
+1 -2
View File
@@ -520,13 +520,12 @@ void setTelemetryValue(TelemetryProtocol protocol, uint16_t id, uint8_t instance
} }
} }
void TelemetrySensor::init(const char *label, uint8_t unit, uint8_t prec) void TelemetrySensor::init(const char * label, uint8_t unit, uint8_t prec)
{ {
memclear(this->label, TELEM_LABEL_LEN); memclear(this->label, TELEM_LABEL_LEN);
strncpy(this->label, label, TELEM_LABEL_LEN); strncpy(this->label, label, TELEM_LABEL_LEN);
this->unit = unit; this->unit = unit;
this->prec = prec; this->prec = prec;
// this->inputFlags = inputFlags;
} }
void TelemetrySensor::init(uint16_t id) void TelemetrySensor::init(uint16_t id)