[Cleanup] Simplify functions to sync sensorType consistency

This commit is contained in:
TD-er
2020-10-02 00:01:40 +02:00
parent 7914924561
commit b03370536c
3 changed files with 2 additions and 16 deletions
-12
View File
@@ -138,18 +138,6 @@ int getValueCountForTask(taskIndex_t taskIndex) {
return TempEvent.Par1;
}
Sensor_VType getDeviceVTypeForTask(taskIndex_t taskIndex) {
int dummyIndex;
return getDeviceVTypeForTask(taskIndex, dummyIndex);
}
Sensor_VType getDeviceVTypeForTask(taskIndex_t taskIndex, int& pconfig_index) {
struct EventStruct TempEvent(taskIndex);
pconfig_index = checkDeviceVTypeForTask(&TempEvent);
return TempEvent.sensorType;
}
int checkDeviceVTypeForTask(struct EventStruct* event) {
if (event->sensorType == Sensor_VType::SENSOR_TYPE_NOT_SET) {
if (validTaskIndex(event->TaskIndex)) {