Looking into current code
case 415: // Host rescue system
{
#if HOST_RESCUE
if (com->hasS()) { // Enable rescue system
Printer::enableRescue(com->S != 0);
}
if (com->hasZ()) { // Replace z
Printer::currentPosition[Z_AXIS] = com->Z;
Printer::coordinateOffset[Z_AXIS] = 0;
Printer::setZHomed(true);
Printer::updateCurrentPositionSteps();
}
Printer::rescueReport();
#endif
}
I see the matching #endif, so error must be deeper then message suggests or does your version look different. I recently had an unclosed #if but that was fixed some days ago, so if the version you use is fresh please provide the configuration so I can compile myself to see the error. On my configs it seems not to happen.