Skip to content

DHT_Status function issue in demo #1

Description

@mryellow

I had to tweak it a bit to compile:

DHT_Status is not defined while DHT_Error_Humidity and DHT_Error_Temperature are not handled.

		//Check status
		switch (DHT_status())
		{
			case (DHT_Ok):
				//Print temperature
				//print(temp[0]);

				//Print humidity
				//print(hum[0]);
				break;
			case (DHT_Error_Checksum):
				//Do something
				break;
			case (DHT_Error_Timeout):
				//Do something else
				break;
			case (DHT_Error_Humidity):
				//Do something else
				break;
			case (DHT_Error_Temperature):
				//Do something else
				break;
		}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions