From a194ab8aad60ee752472c9278c80f4d95e5926df Mon Sep 17 00:00:00 2001 From: Bernd Reuther Date: Fri, 5 Mar 2021 22:01:45 +0100 Subject: [PATCH] fehlerkorrektur --- src/schrittmotor.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/schrittmotor.py b/src/schrittmotor.py index b27c9f2..4efcdf5 100644 --- a/src/schrittmotor.py +++ b/src/schrittmotor.py @@ -135,9 +135,9 @@ class motor(): def eichen(self): if self.aktiv == 0: if pi.read(self.endschalter) == 0: - self.vorwaerts(10, 1) + self.__vorwaerts(10, 1) - self.rueckwaerts(self.schritte_max, 1) + self.__rueckwaerts(self.schritte_max, 1) self.pos = 0 def gehe_zu(self, position): @@ -145,9 +145,9 @@ class motor(): temp_schritte = int(position) - self.pos if temp_schritte > 0: - self.vorwaerts(temp_schritte) + self.__vorwaerts(temp_schritte) else: - self.rueckwaerts(abs(temp_schritte)) + self.__rueckwaerts(abs(temp_schritte)) class motor_bewegen(threading.Thread): def __init__(self, motor, position):