Skip to content

Commit 61c3574

Browse files
authored
Merge pull request #5473 from tonhuisman/bugfix/P135-correct-discovery-vtypes
[P135] Bugfix: Correct Discovery VTypes
2 parents 982d7ba + 7ec7a70 commit 61c3574

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/_P135_SCD4x.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ boolean Plugin_135(uint8_t function, struct EventStruct *event, String& string)
7777
case PLUGIN_GET_DISCOVERY_VTYPES:
7878
{
7979
event->Par1 = static_cast<int>(Sensor_VType::SENSOR_TYPE_CO2_ONLY);
80-
event->Par2 = static_cast<int>(Sensor_VType::SENSOR_TYPE_TEMP_HUM);
80+
event->Par2 = static_cast<int>(Sensor_VType::SENSOR_TYPE_HUM_ONLY);
81+
event->Par3 = static_cast<int>(Sensor_VType::SENSOR_TYPE_TEMP_ONLY);
8182
success = true;
8283
break;
8384
}

0 commit comments

Comments
 (0)