Can someone point me to what data(2) references in the below code?

I'm trying to learn the environment and have come across something that I can't figure out - and is probably very simple.

in the code snippet below (which comes from the DHT.cpp library, there are references to data(2) and data(3). I can't seem to figure out what the code construct refers to. "data" is not a variable, or at least isn't defined in the .h or .cpp. I don't believe this addresses pins 2 and 3, since in the rest of the library the pin number is a parameter. I've searched the Help on environment and language. I've searched the various standard library .h files in case it's something that was defined there. I'm at a loss - can anyone point me to what this references? Thanks,

//boolean S == Scale. True == Farenheit; False == Celcius
float DHT::readTemperature(bool S) {
float f;

if (read()) {
switch (_type) {
case DHT11:
f = data[2];
if(S)
f = convertCtoF(f);

return f;
case DHT22:
case DHT21:
f = data[2] & 0x7F;
f *= 256;
f += data[3];
f /= 10;
if (data[2] & 0x80)
f *= -1;
if(S)
f = convertCtoF(f);

return f;
}
}
return NAN;
}

in the code snippet below (which comes from the DHT.cpp library, there are references to data(2) and data(3)

Actually there are references to data[2] and data[3] which are the third and fourth elements of an array called data.

As you have not posted the complete program it is impossible to be more precise as to the contents and use of the array.

This is in the DHT library file DHT.h that I have installed:

class DHT {
 private:
  uint8_t data[6];

Pete

Thank you. I searched and looked and it was right in front of me. DOH! Now things make sense.

please use code tags when posting code
#button above smileys..