Theis Rotating Platform Demo code

Dependencies:   X_NUCLEO_IHM01A1_Demo_Code mbed

Fork of Demo_IHM01A1_3-Motors by Arkadi Rafalovich

Revision:
14:fcd452b03d1a
Parent:
9:a9e51320aee4
Child:
16:810667a9f31f
--- a/main.cpp	Thu Dec 10 15:07:47 2015 +0000
+++ b/main.cpp	Mon Dec 14 17:30:37 2015 +0000
@@ -73,11 +73,11 @@
 
     /* Initializing Motor Control Components. */
     motor1 = new L6474(D2, D8, D7, D9, D10, dev_spi);
-    if (motor1->Init(NULL) != COMPONENT_OK)
-        return false;
+    if (motor1->Init() != COMPONENT_OK)
+        exit(EXIT_FAILURE);
     motor2 = new L6474(D2, D8, D4, D3, D10, dev_spi);
-    if (motor2->Init(NULL) != COMPONENT_OK)
-        return false;
+    if (motor2->Init() != COMPONENT_OK)
+        exit(EXIT_FAILURE);
 
     /* Printing to the console. */
     printf("Motor Control Application Example for 2 Motors\r\n\n");