Prometheus / Mbed 2 deprecated Prom_Roebi

Dependencies:   Farbsensor IRSensorLib PID_Control Servo mbed PixyLib

Revision:
8:077d0bb213a2
Parent:
7:5949f408b6da
Child:
12:472b26872a42
diff -r 5949f408b6da -r 077d0bb213a2 liftAnsteuerung.cpp
--- a/liftAnsteuerung.cpp	Wed May 17 07:38:41 2017 +0000
+++ b/liftAnsteuerung.cpp	Thu May 18 09:12:46 2017 +0000
@@ -25,7 +25,9 @@
 }
 void LiftAnsteuerung::steuerung(){
     
+    if (pc) {
         pc->printf("M1: %d, M2: %d\n\r", M1, M2);
+        }
     if (M1>0) {
         servoLift->write(1.2f);
         M1--;