disable endstos if there is a configuration error
authorJim Morris <morris@wolfman.com>
Wed, 11 Apr 2018 13:23:42 +0000 (14:23 +0100)
committerJim Morris <morris@wolfman.com>
Wed, 11 Apr 2018 13:23:42 +0000 (14:23 +0100)
src/modules/tools/endstops/Endstops.cpp

index c21ccc8..3a8fca1 100644 (file)
@@ -277,7 +277,7 @@ bool Endstops::load_config()
         // check we are not going above the number of defined actuators/axis
         if(i >= THEROBOT->get_number_registered_motors()) {
             // too many axis we only have configured n_motors
-            THEKERNEL->streams->printf("ERROR: endstop %d is greater than number of defined motors\n", i);
+            THEKERNEL->streams->printf("ERROR: endstop %d is greater than number of defined motors. Endstops disabled\n", i);
             delete pin_info;
             return false;
         }