fix warning...
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user