diff --git a/main.py b/main.py index 50d2cd2..b44389d 100644 --- a/main.py +++ b/main.py @@ -12,7 +12,7 @@ from sensors import MCP9808 from sensors import WaterSensor -class LedServer(Server): +class SensorServer(Server): def __init__(self): super().__init__() @@ -26,10 +26,6 @@ class LedServer(Server): ntp.sync() - def cleanup(self): - super().cleanup() - self.led.off() - def work(self): super().work() ticks = time.ticks_ms() @@ -88,7 +84,7 @@ class LedServer(Server): def main(): logging.log_file = 'www/log.txt' - LedServer().run() + SensorServer().run() if __name__ == '__main__':