Исправляем ошибки компиляции при переходе на новое ядро

This commit is contained in:
2022-09-14 20:36:38 +03:00
parent 8ce79687bc
commit 818824c378
5 changed files with 83 additions and 83 deletions

View File

@@ -39,18 +39,18 @@ class Sht20h : public IoTItem {
};
void* getAPI_Sht20(String subtype, String param) {
// if (subtype == F("Sht20t") || subtype == F("Sht20h")) {
// if (!sht) {
// sht = new SHT2x;
// if (sht) sht->begin();
// }
//
// if (subtype == F("Sht20t")) {
// return new Sht20t(param);
// } else if (subtype == F("Sht20h")) {
// return new Sht20h(param);
// }
//} else {
if (subtype == F("Sht20t") || subtype == F("Sht20h")) {
if (!sht) {
sht = new SHT2x;
if (sht) sht->begin();
}
if (subtype == F("Sht20t")) {
return new Sht20t(param);
} else if (subtype == F("Sht20h")) {
return new Sht20h(param);
}
}
return nullptr;
//}
}