Results 1 to 10 of 757
Threaded View
-
08-04-2014, 02:55 PM #10
If I go and find case 500 so I can put this new case 499 in front of it I'm not sure of the syntax.
I have:
/////////////////////////////////Code Start Paste///////////////////////////////////////////
#if defined(ENABLE_AUTO_BED_LEVELING) && defined(SERVO_ENDSTOPS)
case 401:
{
engage_z_probe(); // Engage Z Servo endstop if available
}
break;
case 402:
{
retract_z_probe(); // Retract Z Servo endstop if enabled
}
break;
#endif
case 500: // M500 Store settings in EEPROM
{
Config_StoreSettings();
}
break;
/////////////////////////////////Code End Paste///////////////////////////////////////////
Does is go like this?
/////////////////////////////////Code Start Paste///////////////////////////////////////////
#if defined(ENABLE_AUTO_BED_LEVELING) && defined(SERVO_ENDSTOPS)
case 401:
{
engage_z_probe(); // Engage Z Servo endstop if available
}
break;
case 402:
{
retract_z_probe(); // Retract Z Servo endstop if enabled
}
break;
case 499: // Invalidate the M500 Store settings in EEPROM command
{
Invalidate_EEPROM_Settings(); // Roxy added function to guarintee we are using
// the default values defined in the firmware!
}
break;
#endif
case 500: // M500 Store settings in EEPROM
{
Config_StoreSettings();
}
break;
////////////////////////////Code End Paste///////////////////////////////////////////////////
My reason for asking is it looks like each case gets a 'break;' at the end and your snippet didn't have that.Bambu P1S/AMS
NVision4D http://nvision4d.com
Please explain to me how to...
Yesterday, 12:15 PM in 3D Printer Parts, Filament & Materials