From b9a6194d5669313834ae55390bed1849912ccba2 Mon Sep 17 00:00:00 2001 From: Mike Cifelli <1836280-mike-cifelli@users.noreply.gitlab.com> Date: Tue, 7 Feb 2023 11:23:31 -0500 Subject: [PATCH] Remove led logic and naming --- main.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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__':