Browse Source

get M81 working

Michael Moon 12 years ago
parent
commit
3e575533c5
1 changed files with 5 additions and 6 deletions
  1. 5
    6
      Marlin/Marlin.pde

+ 5
- 6
Marlin/Marlin.pde View File

@@ -909,7 +909,7 @@ FORCE_INLINE void process_commands()
909 909
         LCD_MESSAGEPGM("Bed done.");
910 910
         previous_millis_cmd = millis();
911 911
     #endif
912
-    break;
912
+        break;
913 913
 
914 914
     #if FAN_PIN > -1
915 915
       case 106: //M106 Fan On
@@ -938,14 +938,13 @@ FORCE_INLINE void process_commands()
938 938
       
939 939
       case 81: // M81 - ATX Power Off
940 940
       
941
-      #if (SUICIDE_PIN >-1)
941
+      #if defined SUICIDE_PIN && SUICIDE_PIN > -1
942 942
         st_synchronize();
943 943
         suicide();
944
-      #else
945
-        #if (PS_ON_PIN > -1) 
946
-          SET_INPUT(PS_ON_PIN); //Floating
947
-        #endif
944
+      #elif (PS_ON_PIN > -1)
945
+        SET_INPUT(PS_ON_PIN); //Floating
948 946
       #endif
947
+		break;
949 948
         
950 949
     case 82:
951 950
       axis_relative_modes[3] = false;

Loading…
Cancel
Save