From 64f93b1a760bb02f6fb3fde32fe1e9cdb1f25005 Mon Sep 17 00:00:00 2001 From: Bernd Reuther Date: Sun, 17 Oct 2021 07:32:38 +0200 Subject: [PATCH] =?UTF-8?q?Status=20der=20Schalter=20u.=20Relais=20ge?= =?UTF-8?q?=C3=A4ndert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/schrittmotor.py | 2 +- templates/main.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/schrittmotor.py b/src/schrittmotor.py index 4efcdf5..b7c0357 100644 --- a/src/schrittmotor.py +++ b/src/schrittmotor.py @@ -135,7 +135,7 @@ class motor(): def eichen(self): if self.aktiv == 0: if pi.read(self.endschalter) == 0: - self.__vorwaerts(10, 1) + self.__vorwaerts(8, 1) self.__rueckwaerts(self.schritte_max, 1) self.pos = 0 diff --git a/templates/main.html b/templates/main.html index 5bc4758..caea11f 100644 --- a/templates/main.html +++ b/templates/main.html @@ -12,7 +12,7 @@

RPi Web Server

{% for pin in pins %}

{{ pins[pin].name }} - {% if pins[pin].state == 1 %} + {% if pins[pin].state == 0 %} ist gerade an

{% else %} @@ -22,7 +22,7 @@ {% endfor %} {% for pin in pins_in %}

{{ pins_in[pin].name }} - {% if pins_in[pin].state == 1 %} + {% if pins_in[pin].state == 0 %} ist gerade an

{% else %} ist gerade aus