mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
Чистка кода сонара
This commit is contained in:
@@ -6,10 +6,6 @@ extern IoTGpio IoTgpio;
|
||||
|
||||
class Sonar : public IoTItem {
|
||||
private:
|
||||
unsigned long currentMillis;
|
||||
unsigned long prevMillis;
|
||||
unsigned long difference;
|
||||
|
||||
unsigned int _pinTrig, _pinEcho;
|
||||
|
||||
public:
|
||||
@@ -40,17 +36,6 @@ class Sonar : public IoTItem {
|
||||
regEvent(value.valD, "Sonar");
|
||||
}
|
||||
|
||||
// void loop() {
|
||||
// // currentMillis = millis();
|
||||
// // difference = currentMillis - prevMillis;
|
||||
// // if (difference >= _interval) {
|
||||
// // prevMillis = millis();
|
||||
|
||||
// // }
|
||||
|
||||
|
||||
// }
|
||||
|
||||
~Sonar() {};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user