fix warning...

This commit is contained in:
Joe Tretter
2020-10-05 09:46:05 -05:00
parent 35fd2f83f2
commit 0589bcbf91

View File

@@ -92,7 +92,7 @@ void loop() {
float temperature = dht.getTemperature();
const char* status=dht.getStatusString();
if (status=="OK") {
if (strcmp(status,"OK") == 0) {
// allocate the memory for the document
const size_t CAPACITY = JSON_OBJECT_SIZE(3);
StaticJsonDocument<CAPACITY> doc;