mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-30 03:49:13 +03:00
Исправляем ошибки компиляции при переходе на новое ядро
This commit is contained in:
@@ -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;
|
||||
//}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user